|
|
|
|
@ -9,7 +9,8 @@ def send(subject, content, sender, recipients, reply_to=None,
|
|
|
|
|
kwargs = {"reply_to": [reply_to]}
|
|
|
|
|
else:
|
|
|
|
|
kwargs = {}
|
|
|
|
|
email = EmailMessage(subject, content, sender, recipients, **kwargs)
|
|
|
|
|
for recipient in recipients:
|
|
|
|
|
email = EmailMessage(subject, content, sender, [recipient], **kwargs)
|
|
|
|
|
if attachments is not None:
|
|
|
|
|
for attach in attachments:
|
|
|
|
|
email.attach_file(attach)
|
|
|
|
|
|