Guides › WordPress › Email problems

WordPress Not Sending Emails: Fix Contact Form and Password Reset Emails

Emails from your site never arrive. Switch from the default PHP mail to authenticated SMTP, and set SPF and DKIM for your domain.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Email problem

By default WordPress sends mail through the server's basic PHP mail function. Many hosts restrict it, and big mailbox providers such as Gmail often reject or hide mail sent this way. The fix is to send through a real mailbox using SMTP.

1Use an SMTP plugin2Use a matching "From" address3Add SPF and DKIM records4Send a test and read the error5Check the form pluginFixed? Test the site. If not, get help.
The steps in order. Work down the list and stop when the problem is solved.

Step 1: Use an SMTP plugin

Illustration for Step 1: Use an SMTP plugin

Install a trusted SMTP plugin, for example WP Mail SMTP or FluentSMTP, and connect it to a real mail account:

Use the SMTP host, port and login your mail provider gives you, normally port 587 with TLS or 465 with SSL.

Step 2: Use a matching "From" address

Illustration for Step 2: Use a matching "From" address

Set the "From" address to an address on your own domain, such as hello@yourdomain.com. Sending as a Gmail or Yahoo address from your server causes rejections.

Step 3: Add SPF and DKIM records

Illustration for Step 3: Add SPF and DKIM records

These DNS records prove your server may send for your domain. Your mail provider shows the exact records to add. Our spam guide explains them.

Step 4: Send a test and read the error

Illustration for Step 4: Send a test and read the error

Most SMTP plugins have a test email button and a log. A "could not authenticate" message means the login is wrong. A "connection timed out" message can mean the host blocks that port, so try the other port.

Step 5: Check the form plugin

Illustration for Step 5: Check the form plugin

Open the form plugin's mail settings. The "To" address should be correct, and the "From" address should match your domain.

Still failing?

Ask your host whether outgoing SMTP ports are blocked on your plan.

Free tool for this problem: Email DNS Checker

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-21.