mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #9214: EmailMessage now respects the From header instead of blindly using from_email. Thanks, Tai Lee.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9842 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -245,7 +245,7 @@ class EmailMessage(object):
|
||||
else:
|
||||
msg.attach(self._create_attachment(*attachment))
|
||||
msg['Subject'] = self.subject
|
||||
msg['From'] = self.from_email
|
||||
msg['From'] = self.extra_headers.pop('From', self.from_email)
|
||||
msg['To'] = ', '.join(self.to)
|
||||
|
||||
# Email header names are case-insensitive (RFC 2045), so we have to
|
||||
|
||||
Reference in New Issue
Block a user