diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-20 18:41:54 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-20 18:41:54 +0100 |
commit | 51352b5daf6cfe56d8d0bf28fef4fe68b998c8cb (patch) | |
tree | bdb8779915d62356702cfdb96b34610fdb23b54a | |
parent | Switch To and Bcc addresses. (diff) | |
download | newspipe-51352b5daf6cfe56d8d0bf28fef4fe68b998c8cb.tar.gz newspipe-51352b5daf6cfe56d8d0bf28fef4fe68b998c8cb.tar.bz2 newspipe-51352b5daf6cfe56d8d0bf28fef4fe68b998c8cb.zip |
Email's 'To' field is given in argument.
-rw-r--r-- | pyaggr3g470r/emails.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pyaggr3g470r/emails.py b/pyaggr3g470r/emails.py index 088cb2af..679e8037 100644 --- a/pyaggr3g470r/emails.py +++ b/pyaggr3g470r/emails.py @@ -99,11 +99,9 @@ def send_postmark(to="", bcc="", subject="", plaintext=""): subject = subject, sender = conf.NOTIFICATION_EMAIL, text_body = plaintext) + message.to = to if bcc != "": - message.to = conf.NOTIFICATION_EMAIL message.bcc = bcc - elif bcc == "": - message.to = to message.send() except Exception as e: logger.exception("send_postmark raised:") |