From 51352b5daf6cfe56d8d0bf28fef4fe68b998c8cb Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 20 Nov 2014 18:41:54 +0100 Subject: Email's 'To' field is given in argument. --- pyaggr3g470r/emails.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pyaggr3g470r') 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:") -- cgit