feat: development compose file;
fix: smtp service
This commit is contained in:
@@ -117,8 +117,8 @@ func (s *smtpServiceImpl) SendEmail(to string, subject, body string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, recipient := range to {
|
||||
if err = client.Rcpt(string(recipient)); err != nil {
|
||||
for _, recipient := range toSlice {
|
||||
if err = client.Rcpt(recipient); err != nil {
|
||||
s.log.Error("SMTP recipient set failed", zap.Error(err))
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user