【发布时间】:2017-09-14 19:38:01
【问题描述】:
下面是我向用户发送邮件的标题 -
$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 中)时会出现问题 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
【问题讨论】:
-
@Quentin,这不是我看到的重复。
-
那么您是否尝试使用该问题中提供的解决方案...?
-
@Sudhir,已经尝试过 b4 发布这个问题。
-
我认为他在 Gmail 确定垃圾邮件的方式方面遇到了一些(最近的)变化。我没有这些更改公告的链接,但我在工作中也一直在处理这个问题。几周前,通常发送的邮件是突然发送的,但是却没有发送。