Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何防止邮件成为垃圾邮件?_Php_Email - Fatal编程技术网

Php 如何防止邮件成为垃圾邮件?

Php 如何防止邮件成为垃圾邮件?,php,email,Php,Email,下面是我向用户发送邮件的标题- $to='example@example.com'; $recipient='example@example.com'; $headers = "From: noreply@xxx.com" . "\r\n"; $headers .= "X-Sender: <" . "$to" . ">\r\n"; $headers .= "Return-Path: <" . "$to" . ">\r\n"; $headers .= "Error-To:

下面是我向用户发送邮件的标题-

$to='example@example.com';
$recipient='example@example.com';
$headers = "From: noreply@xxx.com" . "\r\n";
$headers .= "X-Sender: <" . "$to" . ">\r\n";
$headers .= "Return-Path: <" . "$to" . ">\r\n";
$headers .= "Error-To: <" . "$to" . ">\r\n";
$headers .= "Content-Type: text/html\r\n";

mail("$recipient", "$subj", "$body", "$headers")

Gmail:继续搜索和跟踪发送/接收的邮件列表


如果你继续发送主题和内容相同的邮件,那么它会自动将邮件放入垃圾邮件,另外,如果CTR比率意味着你邮件的点击率较低,那么Gmail也会以垃圾邮件的形式发送邮件,不要批量发送邮件。

你需要通过不同的SMTP发送邮件,因为你的域已被标记为垃圾邮件。如果您觉得这是一个错误,您可以联系gmail。

尝试使用其他STMP服务器,如果您有gmail帐户,您可以尝试使用SwiftMailer。另外,请记住服务器的IP地址可能会列在某些DNS或SMTP黑名单中,请尝试在中查找您的IP


如果你发了很多电子邮件,我建议你使用邮寄服务。我们已经使用过,而且效果很好。

如果您能够共享其中一封收到但被发送到垃圾邮件的邮件的标题,邮戳团队的人员将能够分享一些关于可能发生的事情的见解。

@Quentin,不,这不是重复。我看到了。然后你尝试过使用那个问题中提供的解决方案吗…?@Sudhir,已经尝试过b4发布这个问题。我想他(最近)在Gmail如何确定什么是垃圾邮件方面遇到了一些变化。我没有关于这些变化的公告的链接,但我在工作中也一直在处理这个问题。几周前,正常情况下发出的邮件突然间没有了。
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - myexoticfriends.myexoticfriends.com
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [510 32003] / [47 12]
X-AntiAbuse: Sender Address Domain - myexoticfriends.myexoticfriends.com
X-Source: /usr/bin/php
X-Source-Args: /usr/bin/php /home/exotic/public_html/test/test.php 
X-Source-Dir: myexoticfriends.com:/public_html/test