change receiver field type
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ func (s Sender) SendMail(email mail.Email) error {
|
||||
auth := smtp.PlainAuth("", s.smtpConfig.User, s.smtpConfig.Password, s.smtpConfig.Url)
|
||||
log.Debug().Msg("SMTP authentication succeed")
|
||||
|
||||
if err := smtp.SendMail(s.smtpConfig.GetFullUrl(), auth, email.Sender, email.Receivers, email.Generate()); err != nil {
|
||||
if err := smtp.SendMail(s.smtpConfig.GetFullUrl(), auth, email.Sender, email.GetReceivers(), email.Generate()); err != nil {
|
||||
log.Err(err).Msg("error while sending email")
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user