Update v_mailto.php (#3954)

Don't know is this right way or not, but without this russian emails are totally unreadable.
This commit is contained in:
borisk1976 2018-12-24 00:06:24 +05:00 committed by FusionPBX
parent c7af59eccf
commit ff154192e2
1 changed files with 3 additions and 0 deletions

View File

@ -329,12 +329,15 @@
$mail->ContentType = "text/html"; $mail->ContentType = "text/html";
$mail->Body = $body."<br><br>".nl2br($transcription); $mail->Body = $body."<br><br>".nl2br($transcription);
$mail->AltBody = $body_plain."\n\n$transcription"; $mail->AltBody = $body_plain."\n\n$transcription";
$mail->isHTML(true);
} }
else { else {
// $mail->Body = ($body != '') ? $body : $body_plain; // $mail->Body = ($body != '') ? $body : $body_plain;
$mail->Body = $body_plain."\n\n$transcription"; $mail->Body = $body_plain."\n\n$transcription";
$mail->AltBody = $body_plain."\n\n$transcription"; $mail->AltBody = $body_plain."\n\n$transcription";
$mail->isHTML(false);
} }
$mail->CharSet = "utf-8";
//send the email //send the email
if(!$mail->Send()) { if(!$mail->Send()) {