parent
8ef816d8f8
commit
8151295829
|
@ -47,11 +47,12 @@ class Mailer {
|
||||||
|
|
||||||
$headers = [ "From: $from_combined" ];
|
$headers = [ "From: $from_combined" ];
|
||||||
|
|
||||||
if ($message_html) {
|
if($message_html){
|
||||||
$headers[] = "MIME-Version: 1.0";
|
$headers[]="MIME-Version: 1.0";
|
||||||
$headers[] = "Content-Type: text/html; charset=UTF-8";
|
$headers[]="Content-Type: text/html; charset=UTF-8";
|
||||||
} else {
|
}
|
||||||
$headers[] = "Content-Type: text/plain; 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