summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-03 11:50:43 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-03 11:50:43 +0000
commitbefbd82d85816882436f86912637cda0de332369 (patch)
tree4277a9210ea14f5dce65072805a4819f51ba4017
parent95d7cb27d04bca14f98bbfc9b990488cb913df2c (diff)
Fixed bozo error in [5141].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/mail.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/mail.py b/django/core/mail.py
index 25dfe4e9c9..4794f9d5bb 100644
--- a/django/core/mail.py
+++ b/django/core/mail.py
@@ -132,7 +132,7 @@ class SMTPConnection(object):
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 @@ class EmailMessage(object):
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."""