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
This commit is contained in:
Malcolm Tredinnick 2008-07-26 04:10:52 +00:00
parent fe240b18f6
commit 319a31464d
1 changed files with 1 additions and 1 deletions

View File

@ -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,