$sub = "=?UTF-8?B?".base64_encode("信件標題")."?=";
$msg = "信件內容(支援html)";
$from="From:herbjoyce@gmail.com";
$from.="\nContent-Type:text/html;charset=utf-8";

mail("herbjoyce@gmail.com",$sub,$mail_content,$from)

即可完整顯示utf-8標題+內容

arrow
arrow
    全站熱搜

    herb123456 發表在 痞客邦 留言(0) 人氣()