<?
mb_internal_encoding('UTF-8');
$servicemail="joekyli820@hotmail.com";
$webname="Chun Yiu Company";
$email=$_POST['email'];
$subject=$webname."Replacement ID Password";
$subject=mb_encode_mimeheader($subject, 'UTF-8');
$body="Hello Dear Member, Here is your new Password, please save your data, thank you:<br />
Your new password is:".$password."<br />
any problem,you can touch us,thank you!!";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=utf-8\r\n";
$headers .= "From:".mb_encode_mimeheader($webname, 'UTF-8')."<".$servicemail."> \r\n";
$headers .= "Reply-To:".mb_encode_mimeheader($webname, 'UTF-8')."<".$servicemail.">\r\n";
$headers .= "Return-Path:".mb_encode_mimeheader($webname, 'UTF-8')."<".$servicemail.">\r\n";
mail ($email,$subject,$body,$headers);
?>
为什么我不能使用此代码通过电子邮件功能获取我的密码?非常感谢你。