我在使用PHP发送邮件时遇到了问题。邮件由Outlook正确接收,但不显示电子邮件中的“发件人”地址。php邮件与outlook无法正常工作
$subject = $_POST['message_subject'];
$message = $_POST['speaker_description'];
$email = $_POST['email'];
$option = $_POST['sel_reg_options'];
$email = substr_replace($email ,"",-1);
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From:My Name<[email protected]>\r\n";
$headers .= "Reply-To: Registration of Interest<[email protected]>\r\n";
$headers .= "MIME-Version: 1.0"."\r\n";
$mail_sent = @mail($email,$subject,$message,$headers);
你有没有试过在':'之后留下空格? – deceze 2012-04-11 05:26:56
':'错过之后的空间 – 2012-04-11 05:38:13
是啊试过了一个空间,但仍然没有什么是有用的我已经谷歌它如此之多现在我生病了它 – buttjee 2012-04-11 07:04:57