Skip to content

Commit 700611c

Browse files
authored
Switch to use -f instead of -F for sendmail (#9961)
Fix #9385
1 parent 88c212a commit 700611c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/mailer/mailer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func (s *sendmailSender) Send(from string, to []string, msg io.WriterTo) error {
240240
var closeError error
241241
var waitError error
242242

243-
args := []string{"-F", from, "-i"}
243+
args := []string{"-f", from, "-i"}
244244
args = append(args, setting.MailService.SendmailArgs...)
245245
args = append(args, to...)
246246
log.Trace("Sending with: %s %v", setting.MailService.SendmailPath, args)

0 commit comments

Comments
 (0)