fix: set to and from
This commit is contained in:
parent
52f462e03e
commit
8b687d506f
|
@ -35,6 +35,9 @@ func (m *Mailer) TemplateSend(template string, subjectVars TemplateData, bodyVar
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
email.SetFrom(m.config.Config().Core.Mail.From)
|
||||||
|
email.SetTo(to)
|
||||||
|
|
||||||
msg, err := email.ToMessage()
|
msg, err := email.ToMessage()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue