фикс mes.BodyContentType
This commit is contained in:
2
email.go
2
email.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user