mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Issue #4239: adjust email examples not to use connect() and terminate with
quit() and not close().
This commit is contained in:
parent
d567c38ef2
commit
a2dce5a9ee
4 changed files with 4 additions and 7 deletions
|
|
@ -45,4 +45,4 @@ s = smtplib.SMTP('localhost')
|
|||
# sendmail function takes 3 arguments: sender's address, recipient's address
|
||||
# and message to send - here it is sent as one string.
|
||||
s.sendmail(me, you, msg.as_string())
|
||||
s.close()
|
||||
s.quit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue