Skip to content

Commit fb8b6c7

Browse files
committed
Fix send mail bug
1 parent ac69bf8 commit fb8b6c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/mailer/sender/smtp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (s *SMTPSender) Send(from string, to []string, msg io.WriterTo) error {
128128
return fmt.Errorf("failed to issue MAIL command: %w", err)
129129
}
130130
} else {
131-
if err = client.Mail(from); err != nil {
131+
if err = client.Mail(fmt.Sprintf("<%s>", from)); err != nil {
132132
return fmt.Errorf("failed to issue MAIL command: %w", err)
133133
}
134134
}

0 commit comments

Comments
 (0)