Author: mtredinnick
Date: 2007-05-03 06:50:43 -0500 (Thu, 03 May 2007)
New Revision: 5142

Modified:
   django/trunk/django/core/mail.py
Log:
Fixed bozo error in [5141].


Modified: django/trunk/django/core/mail.py
===================================================================
--- django/trunk/django/core/mail.py    2007-05-03 11:35:11 UTC (rev 5141)
+++ django/trunk/django/core/mail.py    2007-05-03 11:50:43 UTC (rev 5142)
@@ -132,7 +132,7 @@
             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 @@
         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."""


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to