diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-03-29 18:53:27 +0000 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-03-29 18:53:27 +0000 |
| commit | 8bb5b60628b296aac622af559173665ac7579dae (patch) | |
| tree | 0a1efc92024c76fdaa9f09de5217460176407ef4 | |
| parent | 31e84e40f8e4c5e6d4fb4bd9276d2e535545fa33 (diff) | |
Fixed #17811 -- Added connection parameter in call to EmailMessage from send_mass_mail. Thanks fed239 for the report and danielr for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17827 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/mail/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/mail/__init__.py b/django/core/mail/__init__.py index 7ab02c3819..a9b651e538 100644 --- a/django/core/mail/__init__.py +++ b/django/core/mail/__init__.py @@ -78,7 +78,8 @@ def send_mass_mail(datatuple, fail_silently=False, auth_user=None, connection = connection or get_connection(username=auth_user, password=auth_password, fail_silently=fail_silently) - 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) |
