correctly set alterative html string
This commit is contained in:
parent
eadf744eb4
commit
4a0e66a864
1 changed files with 2 additions and 2 deletions
|
|
@ -56,8 +56,8 @@ func (m *SMTPMailer) Send(email Message) error {
|
|||
msg.SetAddrHeader("From", email.From.Address, email.From.Name)
|
||||
msg.SetAddrHeader("To", email.To.Address, email.To.Name)
|
||||
msg.Subject(email.Subject)
|
||||
msg.SetBodyString("text/plain", email.text)
|
||||
msg.SetBodyString("text/html", email.html)
|
||||
msg.SetBodyString(mail.TypeTextPlain, email.text)
|
||||
msg.AddAlternativeString(mail.TypeTextHTML, email.html)
|
||||
|
||||
return m.client.DialAndSend(msg)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue