【发布时间】:2019-05-06 10:13:14
【问题描述】:
我在 1and1 购买了一个云服务器 web,我需要自己配置服务器。 我尝试在 Plesk 中提交邮件,但出现此错误
spf=neutral (google.com: 82.165.121.94 既不允许也不拒绝 zfez5fzzovf@frontwebdesign.fr 域的最佳猜测记录) smtp.mailfrom=zfez5fzzovf@frontwebdesign.fr; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
我正在尝试在 DNS 设置中添加 SPF 和 Dmarc,但我的邮件在垃圾邮件中。
SPF config = TXT v=spf1 -all
DMARC config = v=DMARC1; p=none
我不明白为什么我的邮件又在垃圾邮件中了。
看看我的 PHP 邮件提交:
<?php
$to = "paul.wattellier@frontwebdesign.fr";
$subject = "Contact Site Internet";
$message = "
<html>
<head>
<title>Site Projet </title>
</head>
<body>
<p>Cet email est un test</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
</body>
</html>
";
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
// More headers
$headers .= 'From: <wattellierpaulo@gmail.com>' . "\r\n";
mail($to,$subject,$message,$headers);
echo 'fait!';
?>
感谢您的帮助
【问题讨论】: