Skip to content

Commit 32eb2b9

Browse files
committed
SendmailMailer: 'From' is passed as cmd argument [Closes #78]
1 parent baf85b0 commit 32eb2b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Mail/SendmailMailer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ public function send(Message $mail): void
5656
str_replace(Message::EOL, PHP_EOL, $parts[1]),
5757
$parts[0],
5858
];
59+
60+
if ($from = $mail->getFrom()) {
61+
$args[] = '-f' . key($from);
62+
}
63+
5964
if ($this->commandArgs) {
6065
$args[] = $this->commandArgs;
6166
}

0 commit comments

Comments
 (0)