fix(email): set sender address as return-path header (#4569)

This commit is contained in:
Livio Spring 2022-10-17 17:05:03 +02:00 committed by GitHub
parent da51b481ee
commit 9ae58b62fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,7 @@ func (msg *Email) GetContent() string {
from = fmt.Sprintf("%s <%s>", msg.SenderName, msg.SenderEmail)
}
headers["From"] = from
headers["Return-Path"] = msg.SenderEmail
headers["To"] = strings.Join(msg.Recipients, ", ")
headers["Cc"] = strings.Join(msg.CC, ", ")