我在我的網站使用電子郵件(),並且該功能的工作,但是從地址不顯示我的電子郵件地址,它顯示[email protected]PHP郵件()從不工作
$ito_email = "$inameuser";
$ifrom_email = "[email protected]";
$isubject = "My subject";
$icomment = "Hello $inameuser,\r\n\r\n"
. " \r\n"
. "Subject: $isubjectnote"
. " \r\n"
. "Notice: $inote"
. " \r\n"
. "\r\n"
. "Many thanks";
//send email
mail($ito_email, "$isubject", $icomment, "From: Support " . $ifrom_email);
RTM http://php.net/manual/en/function.mail.php –
試試'「From:Support <」。 $ ifrom_email。 「>」' – user2959229
感謝user2959229。工作。 –