Remove From prefix from SMTP (#154)
This commit is contained in:
parent
71ede02e1c
commit
ef552aaed4
|
|
@ -66,7 +66,7 @@ func (o *SmtpMail) Send(toName string, to string, subject string, content string
|
||||||
}
|
}
|
||||||
|
|
||||||
email := mail.NewMSG()
|
email := mail.NewMSG()
|
||||||
email.SetFrom("From "+addressField(o.from, o.fromName)).
|
email.SetFrom(addressField(o.from, o.fromName)).
|
||||||
AddTo(addressField(to, toName)).
|
AddTo(addressField(to, toName)).
|
||||||
SetSubject(subject).
|
SetSubject(subject).
|
||||||
SetBody(mail.TextHTML, content)
|
SetBody(mail.TextHTML, content)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue