commit | a2dce5a9eec9fca19a374bd4713cb0bc8e796e2e | [log] [tgz] |
---|---|---|
author | Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> | Sat Apr 25 12:49:10 2009 +0000 |
committer | Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> | Sat Apr 25 12:49:10 2009 +0000 |
tree | f06c711e8ccd4a936142d9473f094d6670223f74 | |
parent | d567c38ef2b6e5850a7d5941eceb639c25b24b39 [diff] [blame] |
Issue #4239: adjust email examples not to use connect() and terminate with quit() and not close().
diff --git a/Doc/includes/email-simple.py b/Doc/includes/email-simple.py index 44152a4..689511e 100644 --- a/Doc/includes/email-simple.py +++ b/Doc/includes/email-simple.py
@@ -20,6 +20,5 @@ # Send the message via our own SMTP server, but don't include the # envelope header. s = smtplib.SMTP() -s.connect() s.sendmail(me, [you], msg.as_string()) -s.close() +s.quit()