Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed bozo error in [5141].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit befbd82d85816882436f86912637cda0de332369 1 parent 95d7cb2
@malcolmt malcolmt authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/core/mail.py
View
3  django/core/mail.py
@@ -132,7 +132,7 @@ def _send(self, email_message):
return False
try:
self.connection.sendmail(email_message.from_email,
- email_message.to, email_message.message.as_string()())
+ email_message.to, email_message.message().as_string())
except:
if not self.fail_silently:
raise
@@ -165,6 +165,7 @@ def message(self):
msg['To'] = ', '.join(self.to)
msg['Date'] = formatdate()
msg['Message-ID'] = make_msgid()
+ return msg
def send(self, fail_silently=False):
"""Send the email message."""
Please sign in to comment.
Something went wrong with that request. Please try again.