From 7cd26272fac706f6a0b1bbc8b12ca1a8d2c5a0d9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 6 Jun 2022 21:05:24 +0300 Subject: [PATCH] Revert "minor: Support html content in mailer.php" This reverts commit b91ffae29217d441445ed3931987119d33b6fa20. --- classes/mailer.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/classes/mailer.php b/classes/mailer.php index dcb22e6d6..60b1ce4fd 100644 --- a/classes/mailer.php +++ b/classes/mailer.php @@ -45,15 +45,7 @@ class Mailer { ++$hooks_tried; } - $headers = [ "From: $from_combined" ]; - - if($message_html){ - $headers[]="MIME-Version: 1.0"; - $headers[]="Content-Type: text/html; charset=UTF-8"; - } - else{ - $headers[]="Content-Type: text/plain; charset=UTF-8"; - } + $headers = [ "From: $from_combined", "Content-Type: text/plain; charset=UTF-8" ]; $rc = mail($to_combined, $subject, $message, implode("\r\n", array_merge($headers, $additional_headers)));