We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02d0864 commit 5c9a117Copy full SHA for 5c9a117
src/Mail/SmtpMailer.php
@@ -93,8 +93,9 @@ public function send(Message $mail): void
93
$this->connect();
94
}
95
96
- if (($from = $mail->getHeader('Return-Path'))
97
- || ($from = key($mail->getHeader('From')))
+ if (
+ ($from = $mail->getHeader('Return-Path'))
98
+ || ($from = array_keys((array) $mail->getHeader('From'))[0])
99
) {
100
$this->write("MAIL FROM:<$from>", 250);
101
0 commit comments