Skip to content
Browse files

Fixed #17811 -- Added connection parameter in call to EmailMessage fr…

…om send_mass_mail. Thanks fed239 for the report and danielr for the patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 31e84e4 commit 8bb5b60628b296aac622af559173665ac7579dae @claudep claudep committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 django/core/mail/
3 django/core/mail/
@@ -78,7 +78,8 @@ def send_mass_mail(datatuple, fail_silently=False, auth_user=None,
connection = connection or get_connection(username=auth_user,
- messages = [EmailMessage(subject, message, sender, recipient)
+ messages = [EmailMessage(subject, message, sender, recipient,
+ connection=connection)
for subject, message, sender, recipient in datatuple]
return connection.send_messages(messages)

0 comments on commit 8bb5b60

Please sign in to comment.
Something went wrong with that request. Please try again.