mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
email: Set an envelope-from which may be different from the From: field.
The envelope-from is used by the MTA if the destination address is not deliverable. Route all such mail to the noreply address.
This commit is contained in:
committed by
Tim Abbott
parent
173d2dec3d
commit
e53be6d043
@@ -39,7 +39,8 @@ class EmailLogBackEnd(EmailBackend):
|
||||
|
||||
context = {
|
||||
"subject": email.subject,
|
||||
"from_email": email.from_email,
|
||||
"envelope_from": email.from_email,
|
||||
"from_email": email.extra_headers.get("From", email.from_email),
|
||||
"reply_to": email.reply_to,
|
||||
"recipients": email.to,
|
||||
"body": email.body,
|
||||
|
||||
Reference in New Issue
Block a user