Using smtplib login with esmtp

Samir Patel mepython at
Thu Aug 1 19:15:18 CEST 2002

I am trying to  send login request with smtplib using
login methond of SMTP, it returns with following
"smtplib.SMTPException: No suitable authentication
method found."

I think this is happening because it is using esmtp.
this is what esmtp_features returns:
{'8bitmime': '', 'auth': '=LOGIN', 'size': ''}

Can somebody tells me what I need to change to use
esmtp login?

Here is my code:

from smtplib import SMTP
s = SMTP('")
s.login('username Here', 'Password here')

What I need to do to this last line in order to use
above esmtp?


Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes

More information about the Python-list mailing list