Revert "minor: Support html content in mailer.php"

This reverts commit b91ffae292.
This commit is contained in:
Andrew Dolgov 2022-06-06 21:05:24 +03:00
parent 8151295829
commit 7cd26272fa
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 1 additions and 9 deletions

View File

@ -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)));