diff -r 087d601f6df0 smtplib.py --- a/smtplib.py Sun Feb 15 16:37:02 2009 +0100 +++ b/smtplib.py Sun Feb 15 16:39:16 2009 +0100 @@ -295,6 +295,10 @@ self.sock = self._get_socket(host, port, self.timeout) (code, msg) = self.getreply() if self.debuglevel > 0: print>>stderr, "connect:", msg + # We need to reset the attribute so that HELO/EHLO is issued for every + # new connection (see issue 4142) + self.helo_resp = None + self.ehlo_resp = None return (code, msg) def send(self, str):