From 80a8edf24093715fd6cd91dfba5050913f56de5a Mon Sep 17 00:00:00 2001 From: George Saunders Date: Mon, 18 Mar 2013 23:20:09 +0000 Subject: [PATCH] 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 --- rss2email/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2