I have some problem with authentication. Simple server side script cannot authenticate -_-'
send: 'ehlo [127.0.1.1]\r\n'
reply: '250-mx.zohomail.com Hello [127.0.1.1] (79.110.200.189 (79.110.200.189))\r\n'
reply: '250-AUTH LOGIN PLAIN\r\n'
reply: '250 SIZE 22020096\r\n'
reply: retcode (250); Msg: mx.zohomail.com Hello [127.0.1.1] (79.110.200.189 (79.110.200.189))
AUTH LOGIN PLAIN
SIZE 22020096
send: 'AUTH PLAIN AGFwcHNAYmVsZWNvLWxpbmUucGwATnZ0M0F2SlRiWDl3\r\n'
reply: '535 Authentication Failed\r\n'
reply: retcode (535); Msg: Authentication Failed
Traceback (most recent call last):
File "zoho_send_email.py", line 32, in <module>
server.login("USER","PASSWORD")
File "/usr/lib/python2.7/smtplib.py", line 622, in login
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, 'Authentication Failed')
I tried simple user/password TLS/SSL. Then I tried two factor auth and I generated app token. I'm a little bit confused because the same code works with gmail. Would you like to assist? My USER/PASSWORD are working in browser so I don't know where is the problem. Thank you in advance.
Kamil W.