From 319a31464d5d60dad11cab804fd9d9c709e4c0bb Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 26 Jul 2008 04:10:52 +0000 Subject: [PATCH] Fixed #7966 -- Send email if it has "bcc" recipients and no "to" recipients. Patch from Zal. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8086 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/mail.py b/django/core/mail.py index 78a1ec6192..d6c6eea190 100644 --- a/django/core/mail.py +++ b/django/core/mail.py @@ -175,7 +175,7 @@ class SMTPConnection(object): def _send(self, email_message): """A helper method that does the actual sending.""" - if not email_message.to: + if not email_message.recipients(): return False try: self.connection.sendmail(email_message.from_email,