Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Fix variables names
Browse files Browse the repository at this point in the history
  • Loading branch information
jvasseur committed Aug 28, 2015
1 parent dc23be3 commit f1be7db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MailSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ public function send($name, array $context = [])
}

if (isset($blocks['body_txt']) && isset($blocks['body_html'])) {
$mail->setBody($block['body_txt']);
$mail->addPart($block['body_html'], 'text/html');
$mail->setBody($blocks['body_txt']);
$mail->addPart($blocks['body_html'], 'text/html');
} elseif (isset($blocks['body_txt'])) {
$mail->setBody($block['body_txt']);
$mail->setBody($blocks['body_txt']);
} elseif (isset($blocks['body_html'])) {
$mail->setBody($block['body_html'], 'text/html');
$mail->setBody($blocks['body_html'], 'text/html');
}

$this->mailer->send($mail);
Expand Down

0 comments on commit f1be7db

Please sign in to comment.