Skip to content

Commit

Permalink
added support BCC in django_backend.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vcainelli committed Dec 15, 2011
1 parent c96c3af commit a8707b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions postmark/django_backend.py
Expand Up @@ -59,6 +59,7 @@ def _send(self, message):
return False return False
try: try:
recipients = ','.join(message.to) recipients = ','.join(message.to)
recipients_bcc = ','.join(message.bcc)


html_body = None html_body = None
if isinstance(message, EmailMultiAlternatives): if isinstance(message, EmailMultiAlternatives):
Expand All @@ -83,6 +84,7 @@ def _send(self, message):
subject=message.subject, subject=message.subject,
sender=message.from_email, sender=message.from_email,
to=recipients, to=recipients,
bcc=recipients_bcc,
text_body=message.body, text_body=message.body,
html_body=html_body, html_body=html_body,
reply_to=reply_to, reply_to=reply_to,
Expand Down

0 comments on commit a8707b9

Please sign in to comment.