Hi,
I am trying to send a mail using smtplib. My server requires me to
authenticate, for this I'm using SMTP.login function. However it
fails-
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/smtplib.py", line 587, in login
raise SMTPAuthenticat ionError(code, resp)
smtplib.SMTPAut henticationErro r: (535, 'authorization failed
(#5.7.0)')
I am sure that I am giving the correct credentials. The same works in
Thunderbird. Am I missing something here or am I supposed to use some
other library for this?
Thanks in advance,
Ram
I am trying to send a mail using smtplib. My server requires me to
authenticate, for this I'm using SMTP.login function. However it
fails-
>>server = smtplib.SMTP(ho st='mail.domain ', port=25)
>>server.login( 'username', 'password')
>>server.login( 'username', 'password')
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/smtplib.py", line 587, in login
raise SMTPAuthenticat ionError(code, resp)
smtplib.SMTPAut henticationErro r: (535, 'authorization failed
(#5.7.0)')
I am sure that I am giving the correct credentials. The same works in
Thunderbird. Am I missing something here or am I supposed to use some
other library for this?
Thanks in advance,
Ram
Comment