phpmailer,php,标题,电子邮件转到垃圾邮件

时间:2011-05-10 00:42:18

标签: php gmail yahoo spam phpmailer

我在从系统发送电子邮件时遇到问题,问题是电子邮件被发送到gmail / yahoo / hotmail中的垃圾邮件箱。我在做了一些功课后发布了这里,并且已经验证并检查了SPF设置,反向DNS设置(指向其他地方,并在今天早上约5小时前进行了更改)。 RDNS检查现在说映射是完美的。但没有运气。邮件将去spambox。可能是什么问题?

背景:我使用PHP和PHPMailer发送电子邮件。

垃圾邮件箱中收到的邮件标题:

Delivered-To: ajithsubramanian@gmail.com
Received: by 10.227.144.12 with SMTP id x12cs63931wbu;
    Mon, 9 May 2011 17:05:44 -0700 (PDT)
Received: by 10.68.64.225 with SMTP id r1mr11349194pbs.250.1304985942785;
    Mon, 09 May 2011 17:05:42 -0700 (PDT)
Return-Path: <info@xpal.com>
Received: from xpal.com (208.78.241.38.svwh.net [208.78.241.38])
    by mx.google.com with ESMTPS id w1si21200467pbh.199.2011.05.09.17.05.40
    (version=TLSv1/SSLv3 cipher=OTHER);
    Mon, 09 May 2011 17:05:41 -0700 (PDT)
Received-SPF: pass (google.com: domain of info@xpal.com designates 208.78.241.38 as permitted sender) client-ip=208.78.241.38;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of info@xpal.com designates 208.78.241.38 as permitted sender) smtp.mail=info@xpal.com
Received: by xpal.com (Postfix, from userid 33)
id F31C12C30BA; Mon,  9 May 2011 17:05:29 -0700 (PDT)
To: Ajith Ravi <ajithsubramanian@gmail.com>
Subject: checkarun replied on your xpalling on Sindura
X-PHP-Originating-Script: 0:phpmailer_class.php
Date: Mon, 9 May 2011 17:05:29 -0700
From: XPal Members Alert <info@xpal.com>
Reply-to: Xpal Members Alert <info@xpal.com>
Message-ID: <e773974b10a1d7a0e54d55f489427da1@xpal.com>
X-Priority: 3
X-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_e773974b10a1d7a0e54d55f489427da1"

2 个答案:

答案 0 :(得分:1)

这是因为当您使用PHP mail()函数发送邮件时,如果您使用的是共享主机,它将显示在您的Received标头中。一种方法是更改​​您要发送的标头。 This articlethis article提供了一种通过更改标题来绕过垃圾邮件过滤器的好方法。

对于最佳做法,您应该使用Sender Policy Framework (SPF)进行调查,以避免被视为垃圾邮件。

您可能还对sendmail感兴趣,{{3}}连接到另一个电子邮件帐户(例如,Gmail帐户)并从该帐户发送邮件,而不是从本地服务器发送邮件。

答案 1 :(得分:0)

尝试搜索或检查相关内容。最值得注意的是,大多数人都回答here

相关问题