Hi All,
Got the code to work as follows. It might not be the most ideal but it works 🙂
Not that the chinese text are just some cut and paste text. It can be Thai as well
<?
include('Mail.php');
include('Mail/mime.php');
$from = "From: \"" . mb_encode_mimeheader('新浪公司') . "\" <root@localhost>";
$headers = "From: \"" . mb_encode_mimeheader('新浪公司') . "\" <root@localhost>\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
//$headers .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$headers .= "Content-Type: text/html; charset=utf-8\r\n";
$headers .= "Content-Transfer-Encoding: quoted-printable\r\n";
$to = mb_encode_mimeheader('新浪公司發布布Any Name') . " <someemail@domain.com>";
$subject = 'test3新浪公司發布布2005年第四季度及全年財務報告';
$body = '<html><body><b>京 仅 尽 径年財</b></body></html>';
echo mail($to, $subject, $body, $headers);
?>