Merge pull request #56 from lca2017/chrisjrn/universal_bcc

Removes BCC amendment to mail.py
This commit is contained in:
Scott Bragg 2016-09-07 12:58:11 +10:00 committed by GitHub
commit aa70c5aeb2

View file

@ -24,8 +24,7 @@ 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, bcc=bcc_email)
email = EmailMultiAlternatives(subject, message_plaintext, from_email, to)
email.attach_alternative(message_html, "text/html")
email.send()