Commit 319a3146 authored by Malcolm Tredinnick's avatar Malcolm Tredinnick
Browse files

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
parent fe240b18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,