mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-15 20:41:30 +00:00
fix(email): set sender address as return-path header (#4569)
This commit is contained in:
parent
da51b481ee
commit
9ae58b62fd
@ -32,6 +32,7 @@ func (msg *Email) GetContent() string {
|
|||||||
from = fmt.Sprintf("%s <%s>", msg.SenderName, msg.SenderEmail)
|
from = fmt.Sprintf("%s <%s>", msg.SenderName, msg.SenderEmail)
|
||||||
}
|
}
|
||||||
headers["From"] = from
|
headers["From"] = from
|
||||||
|
headers["Return-Path"] = msg.SenderEmail
|
||||||
headers["To"] = strings.Join(msg.Recipients, ", ")
|
headers["To"] = strings.Join(msg.Recipients, ", ")
|
||||||
headers["Cc"] = strings.Join(msg.CC, ", ")
|
headers["Cc"] = strings.Join(msg.CC, ", ")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user