mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
#11883: replace incorrect call to sendmail with correct call to send_message
This commit is contained in:
parent
b751d6195f
commit
7461298c9c
1 changed files with 1 additions and 1 deletions
|
@ -19,5 +19,5 @@ msg['To'] = you
|
||||||
|
|
||||||
# Send the message via our own SMTP server.
|
# Send the message via our own SMTP server.
|
||||||
s = smtplib.SMTP()
|
s = smtplib.SMTP()
|
||||||
s.sendmail(msg)
|
s.send_message(msg)
|
||||||
s.quit()
|
s.quit()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue