Remove From prefix from SMTP (#154)

This commit is contained in:
Radu Radu 2022-02-12 19:52:42 +01:00 committed by GitHub
parent 71ede02e1c
commit ef552aaed4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ func (o *SmtpMail) Send(toName string, to string, subject string, content string
}
email := mail.NewMSG()
email.SetFrom("From "+addressField(o.from, o.fromName)).
email.SetFrom(addressField(o.from, o.fromName)).
AddTo(addressField(to, toName)).
SetSubject(subject).
SetBody(mail.TextHTML, content)