mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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.
|
||||
s = smtplib.SMTP()
|
||||
s.sendmail(msg)
|
||||
s.send_message(msg)
|
||||
s.quit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue