diff options
author | Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> | 2009-04-25 12:49:10 (GMT) |
---|---|---|
committer | Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> | 2009-04-25 12:49:10 (GMT) |
commit | a2dce5a9eec9fca19a374bd4713cb0bc8e796e2e (patch) | |
tree | f06c711e8ccd4a936142d9473f094d6670223f74 /Doc/includes/email-dir.py | |
parent | d567c38ef2b6e5850a7d5941eceb639c25b24b39 (diff) | |
download | cpython-a2dce5a9eec9fca19a374bd4713cb0bc8e796e2e.zip cpython-a2dce5a9eec9fca19a374bd4713cb0bc8e796e2e.tar.gz cpython-a2dce5a9eec9fca19a374bd4713cb0bc8e796e2e.tar.bz2 |
Issue #4239: adjust email examples not to use connect() and terminate with
quit() and not close().
Diffstat (limited to 'Doc/includes/email-dir.py')
-rw-r--r-- | Doc/includes/email-dir.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/includes/email-dir.py b/Doc/includes/email-dir.py index c04f57d..e67de61 100644 --- a/Doc/includes/email-dir.py +++ b/Doc/includes/email-dir.py @@ -106,9 +106,8 @@ must be running an SMTP server. fp.close() else: s = smtplib.SMTP() - s.connect() s.sendmail(opts.sender, opts.recipients, composed) - s.close() + s.quit() if __name__ == '__main__': |