Skip to content

Commit

Permalink
Merge pull request #36 from narendravaghela/4.x-fixvars
Browse files Browse the repository at this point in the history
Fixing var names
  • Loading branch information
challgren authored Mar 31, 2020
2 parents 59ea142 + b0d8845 commit ed48fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mailer/Transport/MailgunTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ protected function _prepareEmailAddresses(Email $email)
$this->_formData->add('from', sprintf("%s <%s>", key($from), key($from)));
}

foreach ($email->getSender() as $toEmail => $toName) {
$this->_formData->add('h:Sender', sprintf("%s <%s>", $toName, $toEmail));
foreach ($email->getSender() as $senderEmail => $senderName) {
$this->_formData->add('h:Sender', sprintf("%s <%s>", $senderName, $senderEmail));
}

foreach ($email->getTo() as $toEmail => $toName) {
Expand Down

0 comments on commit ed48fa6

Please sign in to comment.