email: Change stray SMTP_SERVER to server
authorGeorge Saunders <georgesaunders@gmail.com>
Mon, 18 Mar 2013 23:20:09 +0000 (23:20 +0000)
committerGeorge Saunders <georgesaunders@gmail.com>
Mon, 18 Mar 2013 23:20:09 +0000 (23:20 +0000)
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 <georgesaunders@gmail.com>
rss2email/email.py

index 4bfd1982d9d00a798f67a46c580a5592805cdf50..a5818cd995e0047f44930d797ca9c549c1627ffc 100644 (file)
@@ -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: