Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
95eb6ff3
Commit
95eb6ff3
authored
Feb 03, 2010
by
Martijn Pieters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge r108731 from 2.12: MailHost fallback to HELO
parent
1c1dc58e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
doc/CHANGES.txt
doc/CHANGES.txt
+6
-0
lib/python/Products/MailHost/mailer.py
lib/python/Products/MailHost/mailer.py
+4
-2
No files found.
doc/CHANGES.txt
View file @
95eb6ff3
...
...
@@ -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
...
...
lib/python/Products/MailHost/mailer.py
View file @
95eb6ff3
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment