mirror of https://github.com/python/cpython
Merge #11883: replace incorrect call to sendmail with correct call to send_message
This commit is contained in:
commit
d3f075a4c0
|
@ -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…
Reference in New Issue