diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-04-30 21:26:32 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-04-30 21:26:32 (GMT) |
commit | bb754b503c617821db907a88ae148e2bb0304d31 (patch) | |
tree | 1cc9ad279bad65e78892ea9000a4e6ca57cbeea1 /Doc | |
parent | 9beb34ee0db236839236af6719aa223a753de896 (diff) | |
download | cpython-bb754b503c617821db907a88ae148e2bb0304d31.zip cpython-bb754b503c617821db907a88ae148e2bb0304d31.tar.gz cpython-bb754b503c617821db907a88ae148e2bb0304d31.tar.bz2 |
#11883: fix email examples by adding 'localhost' to SMTP constructor calls
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/includes/email-dir.py | 2 | ||||
-rw-r--r-- | Doc/includes/email-mime.py | 2 | ||||
-rw-r--r-- | Doc/includes/email-simple.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Doc/includes/email-dir.py b/Doc/includes/email-dir.py index e67de61..035442b 100644 --- a/Doc/includes/email-dir.py +++ b/Doc/includes/email-dir.py @@ -105,7 +105,7 @@ must be running an SMTP server. fp.write(composed) fp.close() else: - s = smtplib.SMTP() + s = smtplib.SMTP('localhost') s.sendmail(opts.sender, opts.recipients, composed) s.quit() diff --git a/Doc/includes/email-mime.py b/Doc/includes/email-mime.py index f64df83..7b1c028 100644 --- a/Doc/includes/email-mime.py +++ b/Doc/includes/email-mime.py @@ -26,6 +26,6 @@ for file in pngfiles: msg.attach(img) # Send the email via our own SMTP server. -s = smtplib.SMTP() +s = smtplib.SMTP('localhost') s.sendmail(me, family, msg.as_string()) s.quit() diff --git a/Doc/includes/email-simple.py b/Doc/includes/email-simple.py index 689511e..29bd078 100644 --- a/Doc/includes/email-simple.py +++ b/Doc/includes/email-simple.py @@ -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() |