From: George Saunders Date: Mon, 18 Mar 2013 23:20:09 +0000 (+0000) Subject: email: Change stray SMTP_SERVER to server X-Git-Tag: v3.3~11^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=80a8edf;p=rss2email.git email: Change stray SMTP_SERVER to server This fixes the error below that occurred upon sending a message by SMTP. NameError: global name 'SMTP_SERVER' is not defined. Signed-off-by: George Saunders --- diff --git a/rss2email/email.py b/rss2email/email.py index 4bfd198..a5818cd 100644 --- a/rss2email/email.py +++ b/rss2email/email.py @@ -143,7 +143,7 @@ def smtp_send(sender, recipient, message, config=None, section='DEFAULT'): else: smtp = _smtplib.SMTP() try: - smtp.connect(SMTP_SERVER) + smtp.connect(server) except KeyboardInterrupt: raise except Exception as e: