mirror of
https://github.com/django/django.git
synced 2024-11-30 15:10:46 +01:00
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:
parent
fe240b18f6
commit
319a31464d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user