summaryrefslogtreecommitdiff
path: root/yaksh/send_emails.py
diff options
context:
space:
mode:
authoradityacp2018-05-24 12:07:39 +0530
committeradityacp2018-06-07 14:50:47 +0530
commit97b657edc2a323f832c81f0e34ce5761bd21f7e9 (patch)
tree09f4367f813fab99ffa8cd540d246cfc8c8fa00a /yaksh/send_emails.py
parent78ce1804d3a82327aa0da1510bb5c03d6bbff3ba (diff)
downloadonline_test-97b657edc2a323f832c81f0e34ce5761bd21f7e9.tar.gz
online_test-97b657edc2a323f832c81f0e34ce5761bd21f7e9.tar.bz2
online_test-97b657edc2a323f832c81f0e34ce5761bd21f7e9.zip
Pep8 changes
Diffstat (limited to 'yaksh/send_emails.py')
-rw-r--r--yaksh/send_emails.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/send_emails.py b/yaksh/send_emails.py
index 4c9a7dc..e54e0a7 100644
--- a/yaksh/send_emails.py
+++ b/yaksh/send_emails.py
@@ -6,7 +6,6 @@ except ImportError:
from string import digits, punctuation
import hashlib
from textwrap import dedent
-import smtplib
import os
# Django imports
@@ -61,12 +60,13 @@ def send_user_mail(user_mail, key):
return success, msg
+
def send_bulk_mail(subject, email_body, recipients, attachments):
try:
text_msg = ""
msg = EmailMultiAlternatives(subject, text_msg, settings.SENDER_EMAIL,
- [settings.SENDER_EMAIL], bcc=recipients
- )
+ [settings.SENDER_EMAIL], bcc=recipients
+ )
msg.attach_alternative(email_body, "text/html")
if attachments:
for file in attachments: