aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-11-20 18:41:54 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-11-20 18:41:54 +0100
commit51352b5daf6cfe56d8d0bf28fef4fe68b998c8cb (patch)
treebdb8779915d62356702cfdb96b34610fdb23b54a
parentSwitch To and Bcc addresses. (diff)
downloadnewspipe-51352b5daf6cfe56d8d0bf28fef4fe68b998c8cb.tar.gz
newspipe-51352b5daf6cfe56d8d0bf28fef4fe68b998c8cb.tar.bz2
newspipe-51352b5daf6cfe56d8d0bf28fef4fe68b998c8cb.zip
Email's 'To' field is given in argument.
-rw-r--r--pyaggr3g470r/emails.py4
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:")
bgstack15