Make WordPress emails arrive (SMTP setup)

Create a sending mailbox, configure an SMTP plugin and a contact form correctly, and prove the emails authenticate.

TutorialIntermediate20 min to completeLast updated
On this page
  1. What you’ll need
  2. Step 1: Create a sending mailbox
  3. Step 2: Install an SMTP plugin
  4. Step 3: Enter the settings
  5. Step 4: Send a test
  6. Step 5: Fix your contact form
  7. Step 6: Submit the form
  8. Check it worked
  9. If something goes wrong
Level
Intermediate
Time
About 20 min
Steps
6
You’ll finish with
A working result, checked

6 steps

What you’ll need

  • WordPress admin access
  • DirectAdmin access

Password resets, form notifications and order emails often vanish because WordPress sends them unauthenticated. Sending through a real mailbox fixes that.

Step 1: Create a sending mailbox

In E-mail Manager › E-mail Accounts, create website@yourdomain.co.uk with a strong password. How to create an email account in DirectAdmin

Step 2: Install an SMTP plugin

Plugins → Add New, search for SMTP, and install a well-maintained plugin. Choose the generic Other SMTP mailer.

Step 3: Enter the settings

Host mail.yourdomain.co.uk, encryption SSL, port 465, authentication on, username and From address website@yourdomain.co.uk, Force From Email on. How to send WordPress email through SMTP

Step 4: Send a test

Use the plugin’s test tool to email your Gmail address. Open it and check Show original for SPF and DKIM PASS.

Step 5: Fix your contact form

In the form plugin’s notification settings, set From to website@yourdomain.co.uk and Reply-To to the visitor’s email field.

Step 6: Submit the form

Fill in the live form with an outside email address, check the notification arrives, and hit Reply to confirm it addresses the visitor.

Check it worked

Plugin test and form notifications arrive in the inbox (not spam), Gmail shows SPF and DKIM passing, and replying to a form notification goes to the visitor.

If something goes wrong

What happensWhat to do
Could not connect to SMTP hostTry TLS on port 587. Email ports and encryption: SSL/TLS vs STARTTLS
Authentication failedFull address as username; check the mailbox password. SMTP authentication failed
Arrives but in spamSet up SPF, DKIM and DMARC. Set up SPF, DKIM and DMARC

Not hosting with Traxio yet? WordPress hosting from 99p a month is £0.99 a month.

Where this fits: Web hosting for beginners brings together everything you need for a first website, in order.

Spotted something out of date or unclear? Tell us and we’ll fix it.

Keep going