фикс mes.BodyContentType

This commit is contained in:
Vladimir V Maksimov
2026-04-27 17:45:31 +03:00
parent 8331f1a95b
commit 31b1bd2e9f

View File

@@ -18,7 +18,7 @@ func SendEmailHTML(auth SmtpAuth, message, subject string, from mail.Address, to
return errors.New("expected least one receiver")
}
mes := email.NewMessage(subject, message)
mes.BodyContentType = "text/html;"
mes.BodyContentType = "text/html"
mes.From = from
for _, ito := range to {
mes.AddTo(ito)