Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

File tree

src/Transport/Sendmail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,15 @@ protected function prepareParameters(Mail\Message $message)
244244

245245
$sender = $message->getSender();
246246
if ($sender instanceof AddressInterface) {
247-
$parameters .= ' -r ' . $sender->getEmail();
247+
$parameters .= ' -f ' . $sender->getEmail();
248248
return $parameters;
249249
}
250250

251251
$from = $message->getFrom();
252252
if (count($from)) {
253253
$from->rewind();
254254
$sender = $from->current();
255-
$parameters .= ' -r ' . $sender->getEmail();
255+
$parameters .= ' -f ' . $sender->getEmail();
256256
return $parameters;
257257
}
258258

test/Transport/SendmailTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function testReceivesMailArtifactsOnUnixSystems()
8989
$this->assertContains("From: [email protected],\r\n Matthew <[email protected]>\r\n", $this->additional_headers);
9090
$this->assertContains("X-Foo-Bar: Matthew\r\n", $this->additional_headers);
9191
$this->assertContains("Sender: Ralph Schindler <[email protected]>\r\n", $this->additional_headers);
92-
$this->assertEquals('-R hdrs -r [email protected]', $this->additional_parameters);
92+
$this->assertEquals('-R hdrs -f [email protected]', $this->additional_parameters);
9393
}
9494

9595
public function testReceivesMailArtifactsOnWindowsSystems()

0 commit comments

Comments
 (0)