summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-07-26 04:10:52 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-07-26 04:10:52 +0000
commit319a31464d5d60dad11cab804fd9d9c709e4c0bb (patch)
tree11e5362ecf47ed732a27ff03483304f2cbd4ecaa
parentfe240b18f61a74acf627f0747a6bc0098772ba0f (diff)
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
-rw-r--r--django/core/mail.py2
1 files changed, 1 insertions, 1 deletions
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,