Skip to content

Commit

Permalink
Call PHPMailer isHtml once
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Nov 27, 2024
1 parent 37e3618 commit 37553e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions application/libraries/Email_messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;

Expand Down

0 comments on commit 37553e0

Please sign in to comment.