aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-11-20 07:00:35 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-11-20 07:00:35 +0100
commit1069f80d829c2623b1ae3fe218ddf48a2787fd55 (patch)
treeafce9bf30fe322d63d9a3747170fb048ca7ab5e9 /pyaggr3g470r
parentBug fix. (diff)
downloadnewspipe-1069f80d829c2623b1ae3fe218ddf48a2787fd55.tar.gz
newspipe-1069f80d829c2623b1ae3fe218ddf48a2787fd55.tar.bz2
newspipe-1069f80d829c2623b1ae3fe218ddf48a2787fd55.zip
Renamed function send_email to send_smtp.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/emails.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/emails.py b/pyaggr3g470r/emails.py
index 26fece56..9ebd8414 100644
--- a/pyaggr3g470r/emails.py
+++ b/pyaggr3g470r/emails.py
@@ -54,13 +54,13 @@ def send(*args, **kwargs):
subject=kwargs.get("subject"),
plaintext=kwargs.get("plaintext"))
else:
- send_email(to=kwargs.get("to"),
+ send_smtp(to=kwargs.get("to"),
bcc=kwargs.get("bcc"),
subject=kwargs.get("subject"),
plaintext=kwargs.get("plaintext"),
html=kwargs.get("html"))
-def send_email(to="", bcc="", subject="", plaintext="", html=""):
+def send_smtp(to="", bcc="", subject="", plaintext="", html=""):
"""
Send an email.
"""
@@ -89,7 +89,7 @@ def send_email(to="", bcc="", subject="", plaintext="", html=""):
s = smtplib.SMTP(conf.NOTIFICATION_HOST)
s.login(conf.NOTIFICATION_USERNAME, conf.NOTIFICATION_PASSWORD)
except Exception:
- logger.exception("send_email raised:")
+ logger.exception("send_smtp raised:")
else:
s.sendmail(conf.NOTIFICATION_EMAIL, msg['To'] + ", " + msg['BCC'], msg.as_string())
s.quit()
bgstack15