fix: set to and from

This commit is contained in:
Derrick Hammer 2024-03-15 07:31:47 -04:00
parent 52f462e03e
commit 8b687d506f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -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