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

Commit f1be7db

Browse files
committed
Fix variables names
1 parent dc23be3 commit f1be7db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/MailSender.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ public function send($name, array $context = [])
4848
}
4949

5050
if (isset($blocks['body_txt']) && isset($blocks['body_html'])) {
51-
$mail->setBody($block['body_txt']);
52-
$mail->addPart($block['body_html'], 'text/html');
51+
$mail->setBody($blocks['body_txt']);
52+
$mail->addPart($blocks['body_html'], 'text/html');
5353
} elseif (isset($blocks['body_txt'])) {
54-
$mail->setBody($block['body_txt']);
54+
$mail->setBody($blocks['body_txt']);
5555
} elseif (isset($blocks['body_html'])) {
56-
$mail->setBody($block['body_html'], 'text/html');
56+
$mail->setBody($blocks['body_html'], 'text/html');
5757
}
5858

5959
$this->mailer->send($mail);

0 commit comments

Comments
 (0)