From befbd82d85816882436f86912637cda0de332369 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Thu, 3 May 2007 11:50:43 +0000 Subject: [PATCH] Fixed bozo error in [5141]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5142 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/mail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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."""