From 8b687d506f53c2f25685e54ccf1e0d389dd26ba0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 15 Mar 2024 07:31:47 -0400 Subject: [PATCH] fix: set to and from --- mailer/mailer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mailer/mailer.go b/mailer/mailer.go index 1bd6943..a6b4e7e 100644 --- a/mailer/mailer.go +++ b/mailer/mailer.go @@ -35,6 +35,9 @@ func (m *Mailer) TemplateSend(template string, subjectVars TemplateData, bodyVar return err } + email.SetFrom(m.config.Config().Core.Mail.From) + email.SetTo(to) + msg, err := email.ToMessage() if err != nil { return err