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:
- isn't authenticated for your domain. There's no DKIM signature, and your domain's SPF record doesn't list the host's server, so Gmail can't confirm the email really comes from you;
- comes from a shared IP address used by hundreds of other sites on the same server, some of which send spam;
- has a From address that doesn't match the server, such as
wordpress@yoursite.comsent fromserver123.somehost.com.
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:
| Setting | Value |
|---|---|
| SMTP Host | smtp.trivsend.com |
| SMTP Port | 587, Encryption TLS |
| SMTP Username | trivsend |
| SMTP Password | a TrivSend API key |
| From Email | an 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?
- Check the From address. It must be on the domain you verified. Plugins like contact forms sometimes set the From to the visitor's address; use Force From Email, and put the visitor in Reply-To instead.
- Add a DMARC record (
_dmarc.yoursite.com) starting withp=none. Our SPF, DKIM and DMARC guide explains it. - Look at the content. All-image emails, link shorteners and spammy subject lines hurt. Plain, useful messages do best.
- Remove addresses that bounce. A good service suppresses them automatically.
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.