From 1e6b4b12a79b4e62248a4f7a844a5d9bdf9753de Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Mon, 14 May 2018 13:26:41 +0530 Subject: Add recipients to BCC field in send_bulk_mail function --- yaksh/send_emails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yaksh/send_emails.py') diff --git a/yaksh/send_emails.py b/yaksh/send_emails.py index ae49f23..4c9a7dc 100644 --- a/yaksh/send_emails.py +++ b/yaksh/send_emails.py @@ -65,7 +65,7 @@ def send_bulk_mail(subject, email_body, recipients, attachments): try: text_msg = "" msg = EmailMultiAlternatives(subject, text_msg, settings.SENDER_EMAIL, - recipients + [settings.SENDER_EMAIL], bcc=recipients ) msg.attach_alternative(email_body, "text/html") if attachments: -- cgit