On 8 Nov 2006 19:45:00 -0800, Jordan <[EMAIL PROTECTED]> 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 :) -- http://mail.python.org/mailman/listinfo/python-list