Why is my e-mail still being picked up as spam? Using mail() function

孤人 提交于 2019-11-27 08:47:49

Have you read this?

So You'd Like to Send Some Email (Through Code)

In a nutshell:

  1. Make sure the computer sending the email has a Reverse PTR record
  2. Configure DomainKeys Identified Mail in your DNS and code
  3. Set up a SenderID record in your DNS

There are a huge amount of things that contribute to deliverability issues. To scratch the surface:

  • Subject line?
  • Message Body?
  • Are your PTR records correct?
  • Do you have SPF / Sender ID / DKIM / Domain keys setup and configured?
  • Are your sending IPs blacklisted? (senderbase.org is a good way to check reputation. mxtoolbox.com is nice for checking common blacklist status.)

Most spam software will append headers to the messages marked as spam. You can check those out for additional information / the reason why they are being marked spam.

Is this on a home IP address? I've found that many spam filters will automatically block E-Mails coming from what looks like a home IP address.

Reverse lookup on your mx records are crucial too. The email address that it's coming from (in your example: website.com" better be sent from the server where the mx record for website.com points to.

So if I sent an email from the address example.com, but it was sent from a server hosted at website.com, then the reverse lookup on the MX record fails because it sees that the IP address for the email address doesn't match where it was sent from.

You can also use a service like http://www.mxtoolbox.com/blacklists.aspx to check if your domain has been blacklisted.

There are also services that will analyze your email for getting labeled as spam or junk. Just search google for email spam checker.

You mentioned in a comment that you're using shared hosting: that right there is a huge strike against you when it comes to spam filters. Most recipients now perform a reverse DNS lookup to confirm the IP address and the host name of the sender match up; which will not happen on shared hosting.

More info:

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!