的頁面如下: - http://www.coresdaventura.com/free-quote.php - http://www.coresdaventura.pt/orcamentos-gratis.phpPHP - 一些電子郵件未到達我的收件箱/垃圾郵件
這是兩個頁面相同的代碼:
$header = "Mime-version:1.0\n";
$header .= "Content-type: text/html;charset=iso-8859-1\n";
$header .= "From: " . $_POST['email'] . "<" . $_POST['email'] . ">\r\n";
$content = "<html>
<style>
//some style
</style>
<body>
//some content
</body>
</html>";
$email = "[email protected]";
mail($email, utf8_encode("Subject example"), $content, $header);
有時客戶聯繫我們說他們已經給我們發送了一些認爲該網站的電子郵件,但我們還沒有收到(不在垃圾郵件文件夾中)。任何想法爲什麼?
注:我們正在使用Gmail的平臺,爲公司的電子郵件(https://www.gmail.com/intl/en_us/mail/help/work.html)
檢查您的垃圾郵件的電子郵件 –
沒有電子郵件。是不是垃圾郵件文件夾 – expertCode
查看smtp服務器或php.ini [郵件功能]選項的問題。在php.ini中啓用mail.log。 – Deadooshka