From 37553e00b4b8d5edc73a061e670c882f95dd5e9f Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 27 Nov 2024 11:24:18 +0100 Subject: [PATCH] Call PHPMailer isHtml once --- application/libraries/Email_messages.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/application/libraries/Email_messages.php b/application/libraries/Email_messages.php index e5f55a04..b654b6bf 100644 --- a/application/libraries/Email_messages.php +++ b/application/libraries/Email_messages.php @@ -116,7 +116,6 @@ class Email_messages $php_mailer->addAddress($recipient_email); - $php_mailer->isHTML(); $php_mailer->Subject = $subject; $php_mailer->Body = $html; $php_mailer->AltBody = $html; @@ -188,7 +187,6 @@ class Email_messages $php_mailer->addAddress($recipient_email); - $php_mailer->isHTML(); $php_mailer->Subject = $subject; $php_mailer->Body = $html; $php_mailer->AltBody = $html; @@ -223,7 +221,6 @@ class Email_messages $php_mailer->addAddress($recipient_email); - $php_mailer->isHTML(); $php_mailer->Subject = $subject; $php_mailer->Body = $html; $php_mailer->AltBody = $html; @@ -242,6 +239,7 @@ class Email_messages { $php_mailer = new PHPMailer(true); + $php_mailer->isHTML(); $php_mailer->CharSet = 'UTF-8'; $php_mailer->SMTPDebug = config('smtp_debug') ? SMTP::DEBUG_SERVER : null;