mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
fix: add Date header to email headers RFC822 (#6302)
This commit is contained in:
parent
6ca789ad44
commit
4123ab7ba7
@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/zitadel/zitadel/internal/eventstore"
|
||||
"github.com/zitadel/zitadel/internal/notification/channels"
|
||||
@ -37,6 +38,7 @@ func (msg *Email) GetContent() (string, error) {
|
||||
headers["Return-Path"] = msg.SenderEmail
|
||||
headers["To"] = strings.Join(msg.Recipients, ", ")
|
||||
headers["Cc"] = strings.Join(msg.CC, ", ")
|
||||
headers["Date"] = time.Now().Format(time.RFC1123Z)
|
||||
|
||||
message := ""
|
||||
for k, v := range headers {
|
||||
|
Loading…
Reference in New Issue
Block a user