From 9e3c59f9664b3c0652d71de17bf73052db1f2ed9 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Thu, 25 Aug 2022 10:59:55 +0300 Subject: [PATCH] reverted changes to the mailer To: address format --- tools/mailer/smtp.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/mailer/smtp.go b/tools/mailer/smtp.go index 3cb9cdf6..1f09896f 100644 --- a/tools/mailer/smtp.go +++ b/tools/mailer/smtp.go @@ -5,7 +5,6 @@ import ( "io" "net/mail" "net/smtp" - "strings" "github.com/domodwyer/mailyak/v3" ) @@ -65,10 +64,7 @@ func (m *SmtpClient) Send( yak.FromName(fromEmail.Name) } yak.From(fromEmail.Address) - - // wrap in brackets as workaround for spamassasin "TO_NO_BRKTS_HTML_ONLY" rule - yak.To(strings.TrimSpace(fmt.Sprintf("%s <%s>", toEmail.Name, toEmail.Address))) - + yak.To(toEmail.Address) yak.Subject(subject) yak.HTML().Set(htmlContent)