diff --git a/application/libraries/Email_messages.php b/application/libraries/Email_messages.php index e5f55a0420..b654b6bf28 100644 --- a/application/libraries/Email_messages.php +++ b/application/libraries/Email_messages.php @@ -116,7 +116,6 @@ public function send_appointment_saved( $php_mailer->addAddress($recipient_email); - $php_mailer->isHTML(); $php_mailer->Subject = $subject; $php_mailer->Body = $html; $php_mailer->AltBody = $html; @@ -188,7 +187,6 @@ public function send_appointment_deleted( $php_mailer->addAddress($recipient_email); - $php_mailer->isHTML(); $php_mailer->Subject = $subject; $php_mailer->Body = $html; $php_mailer->AltBody = $html; @@ -223,7 +221,6 @@ public function send_password(string $password, string $recipient_email, array $ $php_mailer->addAddress($recipient_email); - $php_mailer->isHTML(); $php_mailer->Subject = $subject; $php_mailer->Body = $html; $php_mailer->AltBody = $html; @@ -242,6 +239,7 @@ private function get_php_mailer(): PHPMailer { $php_mailer = new PHPMailer(true); + $php_mailer->isHTML(); $php_mailer->CharSet = 'UTF-8'; $php_mailer->SMTPDebug = config('smtp_debug') ? SMTP::DEBUG_SERVER : null;