我在使用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