]> granicus.if.org Git - python/commitdiff
#11883: replace incorrect call to sendmail with correct call to send_message
authorR David Murray <rdmurray@bitdance.com>
Sat, 30 Apr 2011 21:19:53 +0000 (17:19 -0400)
committerR David Murray <rdmurray@bitdance.com>
Sat, 30 Apr 2011 21:19:53 +0000 (17:19 -0400)
Doc/includes/email-simple.py

index b069ab0762f267e67d2b90950bccad892a04869b..fdf6f8292432dba1d6a34510a889c924bf138787 100644 (file)
@@ -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()