From a86b6287deb78de7936177ea86177e2ee0e9c8f3 Mon Sep 17 00:00:00 2001 From: Duncan Foster Date: Tue, 28 Feb 2006 15:02:03 +0000 Subject: [PATCH] magic-removal: Fixed #1384: Don't return when sending email fails, just skip to the next address. git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2443 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/mail.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/django/core/mail.py b/django/core/mail.py index 2a6d35af82..a25e8ed24f 100644 --- a/django/core/mail.py +++ b/django/core/mail.py @@ -47,9 +47,8 @@ def send_mass_mail(datatuple, fail_silently=False): server.sendmail(from_email, recipient_list, msg.as_string()) num_sent += 1 except: - if fail_silently: - return - raise + if not fail_silently: + raise try: server.quit() except: