Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(151157)

Unified Diff: Doc/includes/email-simple.py

Issue 10321: Add support for Message objects and binary data to smtplib.sendmail
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Doc/includes/email-mime.py ('k') | Doc/library/smtplib.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Doc/includes/email-simple.py
===================================================================
--- Doc/includes/email-simple.py (revision 86166)
+++ Doc/includes/email-simple.py (working copy)
@@ -17,8 +17,7 @@
msg['From'] = me
msg['To'] = you
-# Send the message via our own SMTP server, but don't include the
-# envelope header.
+# Send the message via our own SMTP server.
s = smtplib.SMTP()
-s.sendmail(me, [you], msg.as_string())
+s.sendmail(msg)
s.quit()
« no previous file with comments | « Doc/includes/email-mime.py ('k') | Doc/library/smtplib.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+