summaryrefslogtreecommitdiffstats
path: root/Doc/includes/email-dir.py
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/includes/email-dir.py')
-rw-r--r--Doc/includes/email-dir.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/includes/email-dir.py b/Doc/includes/email-dir.py
index c04f57d..e67de61 100644
--- a/Doc/includes/email-dir.py
+++ b/Doc/includes/email-dir.py
@@ -106,9 +106,8 @@ must be running an SMTP server.
fp.close()
else:
s = smtplib.SMTP()
- s.connect()
s.sendmail(opts.sender, opts.recipients, composed)
- s.close()
+ s.quit()
if __name__ == '__main__':