Skip to content

Commit

Permalink
Fix from
Browse files Browse the repository at this point in the history
  • Loading branch information
Smeagolworms4 committed Nov 10, 2018
1 parent 9db81b4 commit 306f025
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Model/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,9 @@ public function toSwiftMessage() {
$message->$method($bcc);
$first = false;
}
$first = true;
foreach ($this->getBcc() as $i => $from) {
$method = $first ? 'setFrom' : 'addFrom';
$message->$method($from);
$first = false;

if ($this->getFrom()) {
$message->setFrom($this->getFrom());
}

return $message;
Expand Down

0 comments on commit 306f025

Please sign in to comment.