summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-04-30 21:19:53 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-04-30 21:19:53 (GMT)
commit7461298c9cf7f89e312048013dd9a203b80f37fc (patch)
tree50cd7d8813f83c61a23fbda231c6561f7dc85d6a
parentb751d6195f9cb6b2813c92f8562cc51a8667e5b8 (diff)
downloadcpython-7461298c9cf7f89e312048013dd9a203b80f37fc.zip
cpython-7461298c9cf7f89e312048013dd9a203b80f37fc.tar.gz
cpython-7461298c9cf7f89e312048013dd9a203b80f37fc.tar.bz2
#11883: replace incorrect call to sendmail with correct call to send_message
-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 b069ab0..fdf6f82 100644
--- a/Doc/includes/email-simple.py
+++ b/Doc/includes/email-simple.py
@@ -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()