Revert "minor: Support html content in mailer.php"
This reverts commit b91ffae292
.
This commit is contained in:
parent
8151295829
commit
7cd26272fa
|
@ -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)));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue