沃梦达 / 编程问答 / php问题 / 正文

phpmailer, php, header, 电子邮件进入垃圾邮件

phpmailer, php, header, email goes to spam(phpmailer, php, header, 电子邮件进入垃圾邮件)

本文介绍了phpmailer, php, header, 电子邮件进入垃圾邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am running into a problem while sending out emails from the system and the problem is that the email gets delivered to the spam box in gmail/yahoo/hotmail. I am posting here, after doing my bit of homework, and have already validated and checked the SPF settings, Reverse DNS settings(was pointing elsewhere, and made the change this morning about 5 hours ago). The RDNS check now says the mapping is perfect. Yet no luck. Mails are going to spambox. What could be the problem?

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

Background : I use PHP with PHPMailer to send out emails.

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

The header from the mail received in the spam box :

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"

推荐答案

这是因为当你使用 PHP mail() 函数发送邮件时,如果你使用的是共享主机,它会出现在您的 Received 标头中.一种方法是更改​​要发送的标头.这篇文章和这篇文章提供了一个绕过垃圾邮件过滤器的好方法标题.

This is because when you send a mail with the PHP mail() function, if you are using a shared host, it will appear in your Received header. One way is to change your headers that you are sending. This article and this article give a good way to bypass spam filters by changing headers.

为了获得最佳实践,您应该使用 发件人策略框架 (SPF) 进行调查以避免被被视为垃圾邮件.

For best practices, you should investigate using the Sender Policy Framework (SPF) to avoid being regarded as spam.

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

You might also be interested in sendmail, which connects to another email account (say, a Gmail account) and sends mail from that account, not from your local server.

这篇关于phpmailer, php, header, 电子邮件进入垃圾邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:phpmailer, php, header, 电子邮件进入垃圾邮件

基础教程推荐