Merge pull request #25 from faulteh/lca2017
Adds bcc to emails sent from server
This commit is contained in:
commit
087307e7cd
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue