summaryrefslogtreecommitdiffstats
path: root/Doc/includes/email-simple.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-04-30 21:26:32 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-04-30 21:26:32 (GMT)
commitbb754b503c617821db907a88ae148e2bb0304d31 (patch)
tree1cc9ad279bad65e78892ea9000a4e6ca57cbeea1 /Doc/includes/email-simple.py
parent9beb34ee0db236839236af6719aa223a753de896 (diff)
downloadcpython-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/includes/email-simple.py')
-rw-r--r--Doc/includes/email-simple.py2
1 files changed, 1 insertions, 1 deletions
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()