来源地址: http://www.williamlong.info/info/archives/189.html
当我们使用下面的PHP语句发送中文电子邮件的时候,会发现邮件的标题是乱码,而邮件正文却是正确的,如何才能使得邮件标题不是乱码呢?
$subject = stripslashes($the_post['Title']);
$headers = "MIME-Version: 1.0rn";
$headers .= "Content-type: text/plain; charset=utf-8rn";
$headers .= "Content-Transfer...