fix from address
This commit is contained in:
parent
ba3ace2199
commit
f4d5c92f8a
|
@ -65,6 +65,8 @@ func (m *Mailer) Send(emailcfg string, to string, data any, opts ...Option) erro
|
|||
fromAddress = m.SMTPConfig.Username
|
||||
}
|
||||
|
||||
fmt.Println("From : ", fromAddress)
|
||||
|
||||
if err := message.From(m.SMTPConfig.From); err != nil {
|
||||
return fmt.Errorf("failed to set From header : %w", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue