这是一个棘手的问题,我一直依赖于技术,比如基于许可的电子邮件(即只发送给你有权发送的人),而不是公然使用垃圾邮件术语。

最近,我以编程方式发送的一些电子邮件开始被自动转移到别人的垃圾邮件文件夹中,我不知道该怎么办。

尽管这些特定的电子邮件并不是人类会标记为垃圾邮件的,具体来说,它们是包含许可密钥的电子邮件,人们已经花了很多钱购买,所以我不认为他们会认为它们是垃圾邮件

我认为这是一个很大的话题,在这个话题上我基本上是一个无知的傻瓜。


当前回答

在尽可能多的主要电子邮件提供商(gmail/yahoo/hotmail/aol/etc)上注册一个帐户。如果你改变了你的电子邮件,无论是重大的措辞,改变了发送电子邮件的代码,改变了你的电子邮件服务器,等等,一定要向你所有的账户发送测试邮件,并验证它们没有被标记为垃圾邮件。

其他回答

发送电子邮件有时就像黑魔法一样。反向DNS非常重要。

我发现仔细跟踪ndr非常有用。我把我所有的ndr都指向一个地址,我有一个windows服务解析它们(谷歌ListNanny)。我把尽可能多的NDR信息存入数据库,然后运行报告,看看我是否突然开始被某个域阻塞。此外,您应该避免向先前标记为NDR的地址发送电子邮件,因为这通常是垃圾邮件的良好指示。

如果你需要一次发送一堆客户服务邮件,最好在每一封之间都有一个延迟,因为如果你一次向一个域名发送太多几乎相同的邮件,你肯定会被列入他们的黑名单。

有些域名有时是不可能交付的。Comcast.net是最糟糕的。

确保你的ip地址没有出现在http://www.mxtoolbox.com/blacklists.aspx这样的网站上。

谷歌有一个工具和指导方针。你可以在https://postmaster.google.com/上找到它们,注册并验证你的域名,谷歌提供了该ip地址和域名的个人评分。

从大宗寄件人指南:

身份验证可确保您的消息能够正确分类。缺乏身份验证的电子邮件很可能会被拒绝或被放入垃圾邮件文件夹,因为它们很有可能是用于网络钓鱼诈骗的伪造邮件。此外,出于安全原因,未经验证的带有附件的电子邮件可能会被直接拒绝。

为了确保Gmail能够识别您:

使用一致的IP地址发送大量邮件。 保留有效的反向DNS记录,用于发送指向您的域的邮件的IP地址。 在你发送的每一封大宗邮件的“发件人:”标题中使用相同的地址。 我们还建议以下: 与DKIM签署消息。我们不验证使用少于1024位的密钥签名的消息。 发布SPF记录。 发布一个DMARC策略。

你能做的最重要的事情是确保你要发送电子邮件的人在收到你的电子邮件时不太可能点击“垃圾邮件”按钮。所以,请遵循以下经验法则:

Make sure you have permission from the people you are sending email to. Don't ever send email to someone who did not request it from you. Clearly identify who you are right at the top of each message, and why the person is receiving the email. At least once a month, send out a reminder email to people on your list (if you are running a list), forcing them to opt back in to the list in order to keep receiving communications from you. Yes, this will mean your list gets shorter over time, but the up-side is that the people on your list are "bought in" and will be less likely to flag your email. Keep your content highly relevant and useful. Give people an easy way to opt out of further communications. Use an email sending service like SendGrid that works hard to maintain a good IP reputation. Avoid using short links - these are often blacklisted.

遵循这些经验法则将大有裨益。

以下是之前回答中的几个要点:

Most important: Does the sender address ("From") belong to a domain that runs on the server you send the E-Mail from? If not, make it so. Never use sender addresses like xxx@gmail.com. User reply-to if you need replies to arrive at a different address. Is your server on a blacklist (e.g. check IP on spamhaus.org)? This is a possibility when you're on shared hosting when neighbours behave badly. Are mails filtered by a spam filter? Open an account with a freemailer that has a spam folder and find out. Also, try sending mail to an address without any spam filtering at all. Do you possibly need the fifth parameter "-f" of mail() to add a sender address? (See mail() command in the PHP manual) If you have access to log files, check those, of course. Do you check the "from:" address for possible bounce mails ("Returned to sender")? You can also set up a separate "errors-to" address.

我总是用: https://www.mail-tester.com/

它能给我关于发送电子邮件的技术方面的反馈。比如spf记录,DKIM, Spamassassin分数等等。即使我知道需要做什么,我还是不断地犯错误,mail-testster.com让我很容易找出哪里出了问题。