change receiver field type

This commit is contained in:
2023-09-09 16:07:08 +02:00
parent 2bc22b637d
commit 4d0076e625
2 changed files with 10 additions and 15 deletions
+1 -1
View File
@@ -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
}