Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1634 -- Changed django.core.mail to include 'Date' header in e…

…-mails. Thanks, Eric Walstad

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f375b54503a15360e1b1c08a0ad09c5862bd2083 1 parent fd16f14
Adrian Holovaty authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django/core/mail.py
3  django/core/mail.py
@@ -3,7 +3,7 @@
3 3
 from django.conf import settings
4 4
 from email.MIMEText import MIMEText
5 5
 from email.Header import Header
6  
-import smtplib
  6
+import smtplib, rfc822
7 7
 
8 8
 class BadHeaderError(ValueError):
9 9
     pass
@@ -49,6 +49,7 @@ def send_mass_mail(datatuple, fail_silently=False, auth_user=settings.EMAIL_HOST
49 49
         msg['Subject'] = subject
50 50
         msg['From'] = from_email
51 51
         msg['To'] = ', '.join(recipient_list)
  52
+        msg['Date'] = rfc822.formatdate()
52 53
         try:
53 54
             server.sendmail(from_email, recipient_list, msg.as_string())
54 55
             num_sent += 1

0 notes on commit f375b54

Please sign in to comment.
Something went wrong with that request. Please try again.