diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-04-30 13:15:18 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-04-30 13:15:18 -0500 |
commit | 7a25d146907457d77cd918165c45e72c7b0a3f3d (patch) | |
tree | f3cac4924091aafd4a5bffb69c398a32ab8402c5 /Doc/includes/email-simple.py | |
parent | 273e06f2a79b3e921fa5f0bde0a0c3cad8ea0d95 (diff) | |
parent | aa039cee1babca74cc172aae2886c7c2da30ea8d (diff) | |
download | cpython-7a25d146907457d77cd918165c45e72c7b0a3f3d.tar.gz |
merge 3.1
Diffstat (limited to 'Doc/includes/email-simple.py')
-rw-r--r-- | Doc/includes/email-simple.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/includes/email-simple.py b/Doc/includes/email-simple.py index 689511e4bb..b069ab0762 100644 --- a/Doc/includes/email-simple.py +++ b/Doc/includes/email-simple.py @@ -17,8 +17,7 @@ msg['Subject'] = 'The contents of %s' % textfile 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() |