Fixed bozo error in [5141].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
95d7cb27d0
commit
befbd82d85
|
@ -132,7 +132,7 @@ class SMTPConnection(object):
|
||||||
return False
|
return False
|
||||||
try:
|
try:
|
||||||
self.connection.sendmail(email_message.from_email,
|
self.connection.sendmail(email_message.from_email,
|
||||||
email_message.to, email_message.message.as_string()())
|
email_message.to, email_message.message().as_string())
|
||||||
except:
|
except:
|
||||||
if not self.fail_silently:
|
if not self.fail_silently:
|
||||||
raise
|
raise
|
||||||
|
@ -165,6 +165,7 @@ class EmailMessage(object):
|
||||||
msg['To'] = ', '.join(self.to)
|
msg['To'] = ', '.join(self.to)
|
||||||
msg['Date'] = formatdate()
|
msg['Date'] = formatdate()
|
||||||
msg['Message-ID'] = make_msgid()
|
msg['Message-ID'] = make_msgid()
|
||||||
|
return msg
|
||||||
|
|
||||||
def send(self, fail_silently=False):
|
def send(self, fail_silently=False):
|
||||||
"""Send the email message."""
|
"""Send the email message."""
|
||||||
|
|
Loading…
Reference in New Issue