Ticket #1634: django_core_mail.diff
File django_core_mail.diff, 672 bytes (added by , 18 years ago) |
---|
-
django/core/mail.py
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 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