Skip to content

Commit 5ffd1e0

Browse files
authored
Fix send mail bug (#35834)
backport #35833
1 parent ac69bf8 commit 5ffd1e0

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)