From ef552aaed4145d1e2a98ea029b8e133d60ca773d Mon Sep 17 00:00:00 2001 From: Radu Radu Date: Sat, 12 Feb 2022 19:52:42 +0100 Subject: [PATCH] Remove From prefix from SMTP (#154) --- emailer/smtp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emailer/smtp.go b/emailer/smtp.go index 326fa11..38ac995 100644 --- a/emailer/smtp.go +++ b/emailer/smtp.go @@ -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)