Remove From prefix from SMTP (#154)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user