diff options
-rw-r--r-- | Doc/includes/email-dir.py | 2 | ||||
-rw-r--r-- | Doc/includes/email-mime.py | 2 | ||||
-rw-r--r-- | Doc/includes/email-simple.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Doc/includes/email-dir.py b/Doc/includes/email-dir.py index b1b45b8..cc5529e 100644 --- a/Doc/includes/email-dir.py +++ b/Doc/includes/email-dir.py @@ -105,7 +105,7 @@ must be running an SMTP server. fp.write(composed) fp.close() else: - s = smtplib.SMTP() + s = smtplib.SMTP('localhost') s.sendmail(opts.sender, opts.recipients, composed) s.quit() diff --git a/Doc/includes/email-mime.py b/Doc/includes/email-mime.py index ec7e371..a90edc1 100644 --- a/Doc/includes/email-mime.py +++ b/Doc/includes/email-mime.py @@ -26,6 +26,6 @@ for file in pngfiles: msg.attach(img) # Send the email via our own SMTP server. -s = smtplib.SMTP() +s = smtplib.SMTP('localhost') s.send_message(msg) s.quit() diff --git a/Doc/includes/email-simple.py b/Doc/includes/email-simple.py index fdf6f82..077568d 100644 --- a/Doc/includes/email-simple.py +++ b/Doc/includes/email-simple.py @@ -18,6 +18,6 @@ msg['From'] = me msg['To'] = you # Send the message via our own SMTP server. -s = smtplib.SMTP() +s = smtplib.SMTP('localhost') s.send_message(msg) s.quit() |