Solution for PHP Mail Sending as Junk Characters for Arabic or Unicode Characters

Problem

Capture

 

 

Problem :

Character Encoding Not set in header field of PHP Mail.

Solution :

headerFields = array(
    "From: {$visitor_email}",
    "MIME-Version: 1.0",
    "Content-Type: text/html;charset=utf-8"
);
$mail_sent = mail($client_email, $title, $message, implode("\r\n", $headerFields));

If its ASP server , please use following command

objCDO.BodyPart.Charset = "utf-8"

.