Skip to main content
If your contact form messages, order emails or password resets don’t arrive, or land in spam, set WordPress to send through a real email account with SMTP. This guide shows you how, and how to cut down form spam.

Why emails go missing

By default, WordPress sends email without logging in to a mailbox. Many email providers distrust these messages. Sending through SMTP means WordPress logs in to an email account on your domain, like your email app does, so messages are more trusted.

Step 1: Create an email account for your site

Create an address such as website@yourdomain.com in cPanel. Use a strong password. See Create an email account.
Check that your domain has SPF and DKIM records. They help your emails reach the inbox. See SPF, DKIM and DMARC.

Step 2: Install an SMTP plugin

1

Add the plugin

In WordPress, go to Plugins → Add New, search for an SMTP plugin, for example WP Mail SMTP, then install and activate it.
2

Choose other SMTP

In the plugin’s settings, choose the general “Other SMTP” option, not a named email service.
3

Enter your settings

Replace yourdomain.com with your own domain.
4

Send a test

Save, then use the plugin’s test email feature to send a message to an address you can check, such as your Gmail.
Set your contact form’s “From” address to the same email account. Put the visitor’s address in Reply-To instead, so you can still reply to them. Sending “from” the visitor’s address is a common reason form emails go to spam.

If the test fails

Stop contact form spam

  • Turn on your form plugin’s spam protection, such as a CAPTCHA or a hidden “honeypot” field. Most form plugins have one built in.
  • Don’t publish your email address as plain text on your pages. Use the form instead.
  • Keep plugins up to date. Old form plugins are a common target.
Still stuck? Open a ticket with your domain name and the error the SMTP plugin shows.