Skip to content
Snippets Groups Projects
Unverified Commit 7cd26272 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

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

This reverts commit b91ffae2.
parent 81512958
No related branches found
No related tags found
No related merge requests found
...@@ -45,15 +45,7 @@ class Mailer { ...@@ -45,15 +45,7 @@ class Mailer {
++$hooks_tried; ++$hooks_tried;
} }
$headers = [ "From: $from_combined" ]; $headers = [ "From: $from_combined", "Content-Type: text/plain; charset=UTF-8" ];
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";
}
$rc = mail($to_combined, $subject, $message, implode("\r\n", array_merge($headers, $additional_headers))); $rc = mail($to_combined, $subject, $message, implode("\r\n", array_merge($headers, $additional_headers)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment