From 073174e617b1c5fd022cb61c80d73c111659db24 Mon Sep 17 00:00:00 2001 From: Scott Bragg Date: Fri, 1 Jul 2016 10:10:23 +1000 Subject: [PATCH] Adds bcc to emails sent from server --- symposion/utils/mail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/symposion/utils/mail.py b/symposion/utils/mail.py index e9759d09..8789e044 100644 --- a/symposion/utils/mail.py +++ b/symposion/utils/mail.py @@ -24,7 +24,8 @@ def send_email(to, kind, **kwargs): message_plaintext = strip_tags(message_html) from_email = settings.DEFAULT_FROM_EMAIL + bcc_email = settings.ENVELOPE_BCC_LIST - email = EmailMultiAlternatives(subject, message_plaintext, from_email, to) + email = EmailMultiAlternatives(subject, message_plaintext, from_email, to, bcc=bcc_email) email.attach_alternative(message_html, "text/html") email.send()