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

Commit

Permalink
Merge branch 'Trainmaster-patch-1' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mwillbanks committed Aug 6, 2014
8 parents d2a67fc + 26177b0 + 2beabf9 + de855cb + 82571c3 + e366253 + d26cf74 + 122fff3 commit fe14f39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Transport/Sendmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ protected function prepareParameters(Mail\Message $message)

$sender = $message->getSender();
if ($sender instanceof AddressInterface) {
$parameters .= ' -f ' . $sender->getEmail();
$parameters .= ' -f' . $sender->getEmail();
return $parameters;
}

$from = $message->getFrom();
if (count($from)) {
$from->rewind();
$sender = $from->current();
$parameters .= ' -f ' . $sender->getEmail();
$parameters .= ' -f' . $sender->getEmail();
return $parameters;
}

Expand Down
2 changes: 1 addition & 1 deletion test/Transport/SendmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function testReceivesMailArtifactsOnUnixSystems()
$this->assertContains("From: zf-devteam@zend.com,\n Matthew <matthew@zend.com>\n", $this->additional_headers);
$this->assertContains("X-Foo-Bar: Matthew\n", $this->additional_headers);
$this->assertContains("Sender: Ralph Schindler <ralph.schindler@zend.com>\n", $this->additional_headers);
$this->assertEquals('-R hdrs -f ralph.schindler@zend.com', $this->additional_parameters);
$this->assertEquals('-R hdrs -fralph.schindler@zend.com', $this->additional_parameters);
}

public function testReceivesMailArtifactsOnWindowsSystems()
Expand Down

0 comments on commit fe14f39

Please sign in to comment.