When you set up a website such as e-commerce site. You will need to send out E-Mail within your website. The simplest way to send out E-Mail is by using their build in script, usually called the PHP Mail(). However, when using the service, your E-Mail always seems to go straight to your customers’ E-Mail spam section.

Here is one of the fixes that you will need:

You need to set your Sender Policy Framework (SPF) correctly. You can read more about SPF Record at the wikipedia site. You can set the SPF where you set up your DNS configurations.

I have my domains with CloudFlare. Setting up on their DNS control panel was simple to do, yours may not be as easy.

Here is the config:

NAME: pcwired.com
VALUE: v=spf1 a mx include:hotmail.com ip4: include:73.hostingnow.net ~all
TTL: 1 hour

You can see the Wikipedia page for more SPF command lines.


As you can see from the above config, I am telling the E-Mail client that the E-Mail going out of my web server is valid and owned by my domain name. Therefore, making the E-Mail legit.

If this fix does not work for you, you may have other problems.

2 Responses

    1. The article only mentioned about setting up SDF. You will also need to setup DKIM and make sure your host ip is not blacklisted. You can check the blacklisted ip at mxtoolbox.com.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.