diff options
Diffstat (limited to 'Doc/includes')
| -rw-r--r-- | Doc/includes/email-mime.py | 2 | ||||
| -rw-r--r-- | Doc/includes/email-simple.py | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Doc/includes/email-mime.py b/Doc/includes/email-mime.py index f64df83b4d..8ddd4869e6 100644 --- a/Doc/includes/email-mime.py +++ b/Doc/includes/email-mime.py @@ -27,5 +27,5 @@ for file in pngfiles: # Send the email via our own SMTP server. s = smtplib.SMTP() -s.sendmail(me, family, msg.as_string()) +s.sendmail(msg) s.quit() 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() |
