[Checkins] SVN: zope.sendmail/branches/ajung-encryption-branch/src/zope/sendmail/mailer.py we need to send EHLO instead of HELO for getting the available

Andreas Jung andreas at andreas-jung.com
Sat Aug 18 12:21:04 EDT 2007


Log message for revision 78954:
  we need to send EHLO instead of HELO for getting the available
  SMTP options
  

Changed:
  U   zope.sendmail/branches/ajung-encryption-branch/src/zope/sendmail/mailer.py

-=-
Modified: zope.sendmail/branches/ajung-encryption-branch/src/zope/sendmail/mailer.py
===================================================================
--- zope.sendmail/branches/ajung-encryption-branch/src/zope/sendmail/mailer.py	2007-08-18 16:20:40 UTC (rev 78953)
+++ zope.sendmail/branches/ajung-encryption-branch/src/zope/sendmail/mailer.py	2007-08-18 16:21:03 UTC (rev 78954)
@@ -46,7 +46,7 @@
         connection = self.smtp(self.hostname, str(self.port))
 
         # send EHLO
-        code, response = connection.helo()
+        code, response = connection.ehlo()
         if code < 200 or code >300:
             raise MailHostError('Error sending EHLO to the SMTP server '
                                 '(code=%s, response=%s)' % (code, response))



More information about the Checkins mailing list