help using smtplib to work ..

Tim Williams tim at tdw.net
Thu Nov 9 11:26:35 CET 2006


On 8 Nov 2006 19:45:00 -0800, Jordan <jordan.taylor2 at gmail.com> wrote:

>  For some reason,
> smtp for gmail seems to require that you call server.ehlo() a second
> time, after having called server.starttls(), otherwise, the server
> won't accept authorization.  Thanks.

Not just GMAIL,  all (RFC Compliant) SMTP servers require a 2nd EHLO
after a successful STARTTLS command.

The list of returned options / available commands will usually be
different for the 2nd EHLO.  Often this will just mean the removal of
the STARTTLS option, but sometimes there can be additional
functionality offered.

HTH :)



More information about the Python-list mailing list