Commit 95eb6ff3 authored by Martijn Pieters's avatar Martijn Pieters

Merge r108731 from 2.12: MailHost fallback to HELO

parent 1c1dc58e
......@@ -4,6 +4,12 @@ Zope Changes
Change information for previous versions of Zope can be found in the
file HISTORY.txt.
Zope 2.11.7 (Unreleased)
Bugs Fixed
- MailHost should fall back to HELO when EHLO fails.
Zope 2.11.6 (2010/01/12)
Bugs Fixed
......
......@@ -49,8 +49,10 @@ class SMTPMailer(object):
# send EHLO
code, response = connection.ehlo()
if code < 200 or code >300:
raise RuntimeError('Error sending EHLO to the SMTP server '
'(code=%s, response=%s)' % (code, response))
code, response = connection.helo()
if code < 200 or code >300:
raise RuntimeError('Error sending HELO to the SMTP server '
'(code=%s, response=%s)' % (code, response))
# encryption support
have_tls = connection.has_extn('starttls')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment