mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 03:37:34 +00:00
fix: add Date header to email headers RFC822 (#6302)
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/zitadel/zitadel/internal/eventstore"
|
"github.com/zitadel/zitadel/internal/eventstore"
|
||||||
"github.com/zitadel/zitadel/internal/notification/channels"
|
"github.com/zitadel/zitadel/internal/notification/channels"
|
||||||
@@ -37,6 +38,7 @@ func (msg *Email) GetContent() (string, error) {
|
|||||||
headers["Return-Path"] = msg.SenderEmail
|
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, ", ")
|
||||||
|
headers["Date"] = time.Now().Format(time.RFC1123Z)
|
||||||
|
|
||||||
message := ""
|
message := ""
|
||||||
for k, v := range headers {
|
for k, v := range headers {
|
||||||
|
Reference in New Issue
Block a user