的页面如下: - 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