$subject = "QA details were obtained";
$body = "
email Info
";
$headers = implode("\r\n", array(
"MIME-Version: 1.0",
"Content-type: text/html; charset=windows-1255",
"From: [email protected]"
));
if (mail($customer_email, $subject, $body,$headers)) {
echo "<p>Message successfully sent!</p>";
}
基本上,電子郵件被打印爲成功發送。但是在我的電子郵件,我沒有得到任何電子郵件..不能用PHP發送電子郵件
PS。我發送郵件到自己,所以變量是:
$customer_email = [my-email-address]
在機器上配置了郵件嗎?你有沒有檢查你的郵件服務器的日誌和這臺機器的郵件日誌? – 2012-02-06 11:03:30
我該怎麼做/?我正在使用雅虎。我有yahoos郵件。我沒有得到消息.. – 2012-02-06 11:04:42
你有沒有在垃圾郵件箱中檢查你的郵件? – 2012-02-06 11:05:33