From 29a6aa4201fdec2fb79f450aeb8cc7d3045a0a16 Mon Sep 17 00:00:00 2001 From: TheCartpenter Date: Sat, 29 Jun 2024 07:57:54 -0400 Subject: [PATCH] Used HTML option variable in system/library/mail as per MB --- upload/system/library/mail/mail.php | 2 +- upload/system/library/mail/smtp.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/system/library/mail/mail.php b/upload/system/library/mail/mail.php index ff4aec689..c25a5c1d5 100644 --- a/upload/system/library/mail/mail.php +++ b/upload/system/library/mail/mail.php @@ -69,7 +69,7 @@ public function send(): bool { if (!empty($this->option['text'])) { $message .= chunk_split(base64_encode($this->option['text']), 950) . $eol; } else { - $message .= chunk_split(base64_encode('This is a HTML email and your email client software does not support HTML email!'), 950) . $eol; + $message .= chunk_split(base64_encode(strip_tags($this->option['html'])), 950) . $eol; } $message .= '--' . $boundary . '_alt' . $eol; diff --git a/upload/system/library/mail/smtp.php b/upload/system/library/mail/smtp.php index 6e937662f..ad9ce1d5a 100644 --- a/upload/system/library/mail/smtp.php +++ b/upload/system/library/mail/smtp.php @@ -101,7 +101,7 @@ public function send(): bool { if (!empty($this->option['text'])) { $message .= chunk_split(base64_encode($this->option['text']), 950) . PHP_EOL; } else { - $message .= chunk_split(base64_encode('This is a HTML email and your email client software does not support HTML email!'), 950) . PHP_EOL; + $message .= chunk_split(base64_encode(strip_tags($this->option['html'])), 950) . PHP_EOL; } $message .= '--' . $boundary . '_alt' . PHP_EOL;