[issue6605] smtplib.SMTP.sendmail() rejected after quit(), connect() sequence, no HELO
Casey McGinty
report at bugs.python.org
Thu Jul 30 22:18:02 CEST 2009
New submission from Casey McGinty <casey.mcginty at gmail.com>:
The smtplib.SMTP.quit() method does not reset the 'helo_resp' and
'ehlo_resp' instance attributes. During the next
smtplib.SMTP.sendmail(), the HELO/EHLO commands are not sent, and may
cause the remote SMTP service to reject the message, due to improper
protocol handshaking.
To fix, self.helo_resp and self.ehlo_resp should be set to 'None' in the
smtplib.SMTP.quit() method.
----------
components: Library (Lib)
messages: 91107
nosy: cmcginty
severity: normal
status: open
title: smtplib.SMTP.sendmail() rejected after quit(),connect() sequence, no HELO
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6605>
_______________________________________
More information about the Python-bugs-list
mailing list