This commit is contained in:
teddy
2025-05-05 14:06:04 +07:00
parent 9a2d07faf4
commit d0386a7de4

View File

@@ -81,7 +81,8 @@ func SendEmail(to []string, cc []string, name, subject, message, htmlString stri
body := htmlString body := htmlString
emailTo := "To:" + strings.Join(to, ",") + "\n" emailTo := "To:" + strings.Join(to, ",") + "\n"
emailCC := "Cc: " + strings.Join(cc, ",") + "\n" emailCC := "Cc: " + strings.Join(cc, ",") + "\n"
messages := []byte(sender + emailTo + emailCC + subjectt + mime + body) ReplyTo := "Reply-To: " + config.Mail().AuthEmail + "\n"
messages := []byte(sender + emailTo + emailCC + ReplyTo + subjectt + mime + body)
for _, v := range cc { for _, v := range cc {
if v != "" { if v != "" {