Skip to content
Permalink
Browse files

Merge pull request #2655 from zawaze/patch-4

Update var name error MailerFactory.php
  • Loading branch information...
gillesbourgeat committed Mar 18, 2019
2 parents 7294008 + 5981755 commit 637cdfa682ce7f9f339ffa1fa88510ffa6005115
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/lib/Thelia/Mailer/MailerFactory.php
@@ -288,15 +288,15 @@ public function createSimpleEmailMessage($from, $to, $subject, $htmlBody, $textB
$instance->setSubject($subject);
// If we do not have an HTML message
if (empty($htmlMessage)) {
if (empty($htmlBody)) {
// Message body is the text message
$instance->setBody($textBody, 'text/plain');
} else {
// The main body is the HTML messahe
$instance->setBody($htmlBody, 'text/html');
// Use the text as a message part, if we have one.
if (! empty($textMessage)) {
if (! empty($textBody)) {
$instance->addPart($textBody, 'text/plain');
}
}

0 comments on commit 637cdfa

Please sign in to comment.
You can’t perform that action at this time.