projects
/
rss2email.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a66dd58
)
email: Change stray SMTP_SERVER to server
author
George Saunders
<georgesaunders@gmail.com>
Mon, 18 Mar 2013 23:20:09 +0000
(23:20 +0000)
committer
George 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
patch
|
blob
|
history
diff --git
a/rss2email/email.py
b/rss2email/email.py
index 4bfd1982d9d00a798f67a46c580a5592805cdf50..a5818cd995e0047f44930d797ca9c549c1627ffc 100644
(file)
--- 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: