mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:17:32 +00:00
feat: add reply-to header in email notification (#6393)
* feat: add reply-to header to smtp messages * fix: grpc reply_to_address min 0 and js var name * fix: add missing translations * fix merge and linting --------- Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
@@ -23,6 +23,7 @@ type Email struct {
|
||||
CC []string
|
||||
SenderEmail string
|
||||
SenderName string
|
||||
ReplyToAddress string
|
||||
Subject string
|
||||
Content string
|
||||
TriggeringEvent eventstore.Event
|
||||
@@ -35,6 +36,9 @@ func (msg *Email) GetContent() (string, error) {
|
||||
from = fmt.Sprintf("%s <%s>", msg.SenderName, msg.SenderEmail)
|
||||
}
|
||||
headers["From"] = from
|
||||
if msg.ReplyToAddress != "" {
|
||||
headers["Reply-to"] = msg.ReplyToAddress
|
||||
}
|
||||
headers["Return-Path"] = msg.SenderEmail
|
||||
headers["To"] = strings.Join(msg.Recipients, ", ")
|
||||
headers["Cc"] = strings.Join(msg.CC, ", ")
|
||||
|
Reference in New Issue
Block a user