Why WordPress emails go to spam, and how to fix it

18 November 2026 · 6 min read

Contact-form messages that never arrive. WooCommerce order confirmations in the customer's spam folder. Password resets that "didn't come". If your WordPress site has any of these, the cause is almost always the same, and so is the fix.

The cause: WordPress sends mail the hard way

Out of the box, WordPress hands every email to PHP's mail() function, which passes it to whatever mail program your web host runs. That mail usually:

Since 2024, Gmail and Yahoo require authentication (SPF or DKIM, plus DMARC for larger senders), and they filter or reject mail without it. Your host's mail program wasn't built to meet those rules.

The fix: send through an authenticated SMTP service

Instead of mail(), make WordPress log in to a proper mail service over SMTP. The service signs every email with DKIM for your domain, sends from IP addresses with a good reputation, and tells you what happened to each message.

Step 1: Pick a sending domain

Use a subdomain such as mail.yoursite.com. It keeps your website's email reputation separate from your team's mailboxes, and it doesn't touch your existing email setup.

Step 2: Publish the DNS records

The service gives you a few records: a DKIM key (TXT), and records for the return-path (MX and SPF). Add them at your DNS provider. With TrivSend, a domain on Cloudflare can have them added in one click, and for other providers TrivSend shows exactly where to click and what to type.

Step 3: Install WP Mail SMTP

Install the free WP Mail SMTP plugin, choose Other SMTP, and enter your service's host, port (587 with TLS), username and password. With TrivSend:

SettingValue
SMTP Hostsmtp.trivsend.com
SMTP Port587, Encryption TLS
SMTP Usernametrivsend
SMTP Passworda TrivSend API key
From Emailan address on your verified domain, with Force From Email on

Step 4: Test

Use WP Mail SMTP → Tools → Email Test, then check that it arrives in a Gmail inbox. In TrivSend, the email's page shows whether it was delivered or why not.

Still landing in spam?

Summary

WordPress email goes to spam because mail() sends unauthenticated mail from shared servers. Switching to an authenticated SMTP service with DKIM for your own domain fixes it, usually in under ten minutes.

Set up WordPress with TrivSend, free for 3,000 emails a month.