Author: jacob
Date: 2007-02-25 09:55:31 -0600 (Sun, 25 Feb 2007)
New Revision: 4570

Modified:
   django/trunk/django/core/mail.py
Log:
Fixed #3554: django.core.mail now generates dates with the email module instead 
of the outdated rfc822 module. Thanks, [EMAIL PROTECTED]

Modified: django/trunk/django/core/mail.py
===================================================================
--- django/trunk/django/core/mail.py    2007-02-25 06:57:14 UTC (rev 4569)
+++ django/trunk/django/core/mail.py    2007-02-25 15:55:31 UTC (rev 4570)
@@ -3,7 +3,8 @@
 from django.conf import settings
 from email.MIMEText import MIMEText
 from email.Header import Header
-import smtplib, rfc822
+from email.Utils import formatdate
+import smtplib
 import socket
 import time
 import random
@@ -65,7 +66,7 @@
         msg['Subject'] = subject
         msg['From'] = from_email
         msg['To'] = ', '.join(recipient_list)
-        msg['Date'] = rfc822.formatdate()
+        msg['Date'] = formatdate()
         try:
             random_bits = str(random.getrandbits(64))
         except AttributeError: # Python 2.3 doesn't have random.getrandbits().


--~--~---------~--~----~------------~-------~--~----~
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