How to ensure email delivery with your WordPress website

Email has always been one of the most elusive things to try to figure out when it does not work.

This is a visual tutorial for developers, designers and WordPress masters on how to send emails from your WordPress website.

Having contact or inquiry forms on your website is great, but only if you can receive emails in a timely fashion and not have to hunt within your ‘junk’ email folder.

To assist with this, we recommend WP Mail SMTP by WPForms. There are alternate SMTP plugins out there as well, but for this example, we’ll use this one.

WP Mail SMTP by WPForms

Steps for email delivery

Here is an overview of what is required to setup:

  1. Review plugin settings
  2. Create sub-domain on domain account that serves to send and receive emails.
  3. If on CloudFlare, add the new A records to CloudFlare (txt records also if applicable)
  4. Validate SSL certificate on new sub-domain by running AutoSSL within cPanel
  5. Create new email account on new sub-domain (i.e. info@email.sub-domain.com)
  6. Check email deliverability settings within cPanel
  7. Configure the plugin settings

Plugin Settings

By default, the plugin settings show the ‘Default’ as being ‘php’ – otherwise, the php is sending out emails.

Email delivery

We want to change the setting to ‘Other SMTP’

Email settings SMTP

Before we fill in the SMTP Host, we first need to create a new email account on the web server.

Create a sub-domain

Why sub-domain?

Many times, your customers or clients could be using 3rd party email services such as Google Business Apps for email. The main email address is usually tied to the main domain and related MX records point to the service.

On the web server we set up a sub-domain with a dedicated SMTP email account for sending emails.

A good example would be:

info@email.your-domain.com

’email’ becomes the sub-domain, or you can use whatever name for the sub-domain.

  1. Create the sub-domain

Validate SSL on sub-domain

Within your cPanal account, run AutoSSL and validate the new sub-domain so you see something similar to below.

In this case, we are validating ’email.your-domain.com’

email cpanel status
Screenshot of validation within cPanel

Create New Email Account on Sub-Domain

Simply create a new email account on sub-domain

Validate

Email deliverability in cPanel

By default, you should see this

SPF problem

This is what we want and this is what we are going to fix.

  • Click on the ‘Manage’ button and go get the SPF record.

If you have set up your DNS properly, you will the DKIM record properly configured already.

  • Add the SPR txt record to your DNS registrar

What we want to see within cPanel is:

cpanel email

If you see this, you are good for next step.

Email Settings

Go back to the new email settings and gather your ‘outgoing server’ details.

email settings in cPanel
Settings within cPanel for new email account

Back to plugin settings …

Adjust SMTP plugin settings

Here is a simple screenshot of values that should work

  1. Encryption: TLS
  2. SMTP Port: 587 (your web server may be different)
  3. Authentication: ON

Plugin email settings

When ready, run an ‘Email Test’

WP Mail SMTP

You should get the email now.

You’re happy as you have learned something new and you client is happy for now they can receive emails.

Feedback?

Did we miss a step in this quick tutorial?

Did this work for you?

Would love to hear your feedback on how we can make this tutorial better or if something is missing.

 

 

Leave a Comment

Do NOT follow this link or you will be banned from the site!