mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
#11883: fix email examples by adding 'localhost' to SMTP constructor calls
This commit is contained in:
parent
dcaacbf1ef
commit
dd6ab85384
3 changed files with 3 additions and 3 deletions
|
@ -19,6 +19,6 @@ msg['To'] = you
|
|||
|
||||
# Send the message via our own SMTP server, but don't include the
|
||||
# envelope header.
|
||||
s = smtplib.SMTP()
|
||||
s = smtplib.SMTP('localhost')
|
||||
s.sendmail(me, [you], msg.as_string())
|
||||
s.quit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue