diff options
Diffstat (limited to 'pyaggr3g470r/emails.py')
-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:") |