Issue #4239: adjust email examples not to use connect() and terminate with

quit() and not close().
This commit is contained in:
Jeroen Ruigrok van der Werven 2009-04-25 12:49:10 +00:00
parent d567c38ef2
commit a2dce5a9ee
4 changed files with 4 additions and 7 deletions

View file

@ -27,6 +27,5 @@ for file in pngfiles:
# Send the email via our own SMTP server.
s = smtplib.SMTP()
s.connect()
s.sendmail(me, family, msg.as_string())
s.close()
s.quit()