summaryrefslogtreecommitdiffstats
path: root/Doc/includes/email-simple.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-04-30 21:29:08 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-04-30 21:29:08 (GMT)
commit361a7df323d759a45062f3299984f4848535bae4 (patch)
treef9c14f1456241e540d17a6933c4e306c35206600 /Doc/includes/email-simple.py
parent7461298c9cf7f89e312048013dd9a203b80f37fc (diff)
parentbb754b503c617821db907a88ae148e2bb0304d31 (diff)
downloadcpython-361a7df323d759a45062f3299984f4848535bae4.zip
cpython-361a7df323d759a45062f3299984f4848535bae4.tar.gz
cpython-361a7df323d759a45062f3299984f4848535bae4.tar.bz2
Merge #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 fdf6f82..077568d 100644
--- a/Doc/includes/email-simple.py
+++ b/Doc/includes/email-simple.py
@@ -18,6 +18,6 @@ msg['From'] = me
msg['To'] = you
# Send the message via our own SMTP server.
-s = smtplib.SMTP()
+s = smtplib.SMTP('localhost')
s.send_message(msg)
s.quit()