Using smtplib login with esmtp

Samir Patel mepython at yahoo.com
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
error:
"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('smtpserver.com")
s.login('username Here', 'Password here')

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

Thanks.

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com




More information about the Python-list mailing list