Deliverability

WordPress Contact Form Emails Going to Spam: SMTP, SPF, DKIM Fix

WordPress emails fail because the site sends through PHP mail() from a shared host with no authentication for your domain. Install an SMTP plugin, send through a transactional provider such as Brevo, SendLayer or SendGrid, and publish that provider's SPF and DKIM records on your domain.

Sohail HussainSohail Hussain11 min read

Short answer

  • Stop sending site mail through the host's PHP mail() function. Install an SMTP plugin, connect a transactional provider such as Brevo, SendLayer or SendGrid, and publish the DKIM (and, where the provider asks for it, SPF) records it gives you.
  • Send the form's From address from your own domain, put the visitor's address in Reply-To, then send a test and check that SPF, DKIM and DMARC pass in the headers.

Your contact form says "Message sent," but the notification lands in spam or never shows up at all. It usually started after Gmail and Outlook got stricter, and it is worst on shared hosting. A common variant: the form sends from info@example.com to info@example.com on a GoDaddy-hosted site, and nothing arrives.

Why WordPress mail fails

WordPress sends mail with wp_mail(), which by default hands the message to PHP mail() and the web server's local mail system. That path breaks in a few ways, listed here from most to least common.

  • No authentication for your domain. The message leaves from the host's server, which your SPF record doesn't list, and nothing signs it with a DKIM key for your domain. Google's sender guidelines say that messages that aren't authenticated might be marked as spam or rejected with a 5.7.26 error.
  • From and authentication don't align. The From address is on your domain, but SPF and DKIM authenticate something else. Google says that the domain in the sender's From: header must be aligned with either the SPF domain or the DKIM domain for DMARC to pass.
  • A shared IP with a bad neighbor. Other sites on the same server send from the same address, so its reputation isn't yours.
  • The host blocks or throttles mail(). The message vanishes with no bounce. This is the "never arrives" case.
  • Local delivery on the notification to your own address. The host thinks it handles mail for example.com, looks for a local mailbox, and finds none because your real mailboxes live at Google or Microsoft.
  • The visitor's address in From. If the form sets From to visitor@gmail.com, you are sending as Gmail from your server. That fails alignment, and Gmail says impersonating Gmail From: headers might impact delivery.

I can't tell you which one you have without a header, so the first step is to find out.

Check which problem you have

Send a test and open the raw headers of whatever arrives, even in spam. Paste them into the email header analyzer or read the Authentication-Results line yourself.

What you seeLikely causeFix
Nothing arrives, nothing in spamHost blocks mail(), or the form plugin never firesFix 1
In spam, spf=fail or softfailSending server not authorizedFixes 1 and 2
In spam, dkim=noneNothing signs the mailFix 2
spf=pass but dmarc=failThe authenticated domain isn't your From domainFixes 2 and 4
Own-address notification never arrivesLocal delivery or self-spoof filteringFix 3
Everything passes, still in spamContent or reputationLast fix section

Fix 1: replace host mail() with an SMTP plugin and a provider

  1. In WordPress, go to Plugins > Add New and install an SMTP plugin. WP Mail SMTP, FluentSMTP and Post SMTP all work with the common providers, and some providers ship their own plugin.
  2. In the plugin settings, choose your provider. If it offers an API option, prefer it on shared hosting. Many hosts block outbound SMTP ports, and an API call goes over HTTPS on port 443. Not every provider and plugin pair has an API option.
  3. Set From Email to an address on the domain you will authenticate, such as website@example.com. Turn on any "force from email" option so the form plugin can't override it.
  4. Send the plugin's built-in test email before you change anything else.
  5. Turn on the plugin's email log if it has one, so you can see failed sends later.

I'd skip a personal Gmail account as the SMTP server. The From address gets rewritten, Google limits what it relays, and a password or token ends up stored in your site.

Which provider to pick

As of November 2026, check each vendor's current pricing and limits before committing; they change.

ProviderPick it if
BrevoYou want a free tier to start. People in WordPress communities cite about 300 emails a day on the free plan; confirm the current figure on Brevo's pricing page.
SendLayerYou want a paid service aimed at WordPress site mail. Check its site for current plans.
SendGridYou already use it, or you want one API for several apps. Check whether your account type includes a free tier.

For one small site sending form notifications, any of them works. With correct authentication, deliverability is close, so choose on setup experience and volume.

Fix 2: authenticate your domain with the provider

Each provider shows the exact records in its dashboard. Copy those values, not examples from a blog post. The record types differ by provider, so here is what Brevo's documentation says as an example.

  • Brevo's help center says SPF and MX records are not required to authenticate a domain; they are provided when you set up a dedicated IP.
  • Brevo asks for a Brevo code, a DKIM record (one TXT record or two CNAME records) and a DMARC record.
  • To find them, go to Settings > Senders, Domains, IPs > Domains in Brevo.
  • If your domain provider is supported, Brevo can log in to it and add the records automatically.

SendGrid and SendLayer have their own domain-authentication screens with their own record sets. Follow what they show you.

Add the records at your DNS host

  1. Open the DNS settings for your domain at your registrar or DNS host (the place the nameservers point to, which may be Cloudflare rather than your host).
  2. Create each record with the exact type, name and value shown in the provider's dashboard. Some DNS panels append your domain automatically, so try the short name first. Brevo's troubleshooting page suggests trying brevo1._domainkey first and the full hostname next for DKIM.
  3. If you use Cloudflare with CNAME DKIM records, Brevo says to deactivate CNAME flattening, or DKIM authentication will fail.
  4. Return to the provider and click its verify or authenticate button. Brevo says you can repeat the check over the next 48 hours, then contact support if the domain still isn't authenticated.

Where your provider does ask for SPF, publish one record only. A domain with two SPF records fails with a permerror. Merge them:

example.com.  TXT  "v=spf1 include:_spf.google.com include:spf.provider-example.net ~all"

SPF also has a limit of 10 DNS lookups, so check yours with the SPF lookup count calculator and build records with the SPF generator.

Add a DMARC record

Google's guidelines say to set up DMARC for your sending domain, and that the enforcement policy can be set to none. Start in monitoring mode:

DNS TXT Record
Type:TXT
Host:_dmarc
Value:v=DMARC1; p=none; rua=mailto:dmarc@example.com

Move to p=quarantine only after your reports show every legitimate sender passing. The DMARC generator builds the record, and our guide to setting up SPF, DKIM and DMARC covers all three.

Don't overwrite a working record

If your domain already has DKIM or SPF for Google Workspace or Microsoft 365, add the new provider's values alongside them. Replacing the old record can break your staff mailboxes. Brevo's own advice when switching DKIM types is to leave the current record unchanged until the new one shows as authenticated.

Fix 3: the notification to your own address fails

This is the GoDaddy and Divi case: the form sends from info@example.com to info@example.com. People on community forums report the same pattern on several hosts. Two things happen, and either can hide the message.

  • The receiving provider sees mail claiming to come from its own customer's domain, arriving from a server your DNS never authorized, and may quarantine it.
  • The host's server tries to deliver locally, finds no mailbox, and the message never leaves the machine.

What to do:

  1. Send through the SMTP plugin and authenticated provider from Fixes 1 and 2, so the message is signed for your domain.
  2. Check that the domain's MX records point to where your mailboxes actually live (Google, Microsoft or your mail host), not to the web server.
  3. Use a different From address than the recipient, for example website@example.com to info@example.com.
  4. Check the spam and quarantine views in the receiving mailbox's admin console before assuming the message is lost.

Fix 4: set From and Reply-To correctly in the form

For every contact form, From should be an address on your authenticated domain, and the visitor's email should go in Reply-To. Most form plugins have a "From email" field and a separate "Reply-To" field in the notification settings. Put website@example.com in the first and the visitor's email field tag in the second.

Google's example of alignment is that user@gmail.com would not align with a signature for example.com, which is exactly what happens when a visitor's Gmail address is used as From.

Use one From address everywhere

Pick a single From address on your domain for all site mail. Provider dashboards often require each sender to be verified, and a plugin that rewrites From to something unverified is a common reason a test works and real forms don't.

If everything passes and it's still in spam

  • Check the content. A short message with a plain subject is fine; a body that is only a link is not.
  • Never send from a free-mail address on your own site. Brevo's sender-requirements page tells senders to use an address on their own domain instead of a free address such as @gmail.com or @outlook.com.
  • Check whether the provider's shared IP or your domain is on a blacklist.
  • For internal notifications, add the From address to the recipient's contacts or create a filter that never sends it to spam. That is a legitimate recipient-side fix.

Checklist before you try again

  • The site sends through an SMTP plugin, not host mail().
  • The plugin's From address is on your authenticated domain, with force-from turned on.
  • The provider's dashboard shows the domain as authenticated.
  • Only one SPF record exists, and it covers every sender.
  • A DMARC record exists, at least p=none.
  • The visitor's address is in Reply-To, not From.
  • A fresh test email shows spf=pass or dkim=pass aligned with your From domain.

If nothing works

Contact your provider's support first if the domain shows as authenticated but messages are rejected or never delivered. Contact your host only if outbound ports are blocked and your plugin has no API route. Include the full bounce text with its SMTP code, timestamps, the recipient domain, the raw headers of a failing message, and the steps you already tried.

Subject: Site emails from example.com not delivered despite authenticated domain

Hello,

Our WordPress contact form sends notifications through your service using
the {plugin-name} plugin. The domain example.com shows as authenticated in
the dashboard, but messages to {recipient-domain} are going to spam or
being rejected.

Sent at: {timestamp with timezone}
From address: website@example.com
Recipient: {address}
Bounce or error text: {paste exact text and SMTP code}
Authentication-Results from a received copy: {paste line}

We have already: replaced host mail() with your SMTP/API connection,
published DKIM and DMARC records, and confirmed there is one SPF record.

Can you check whether this message was accepted and why it was filtered?

Thank you

Common questions

Do I need SPF if my provider only asks for DKIM?

Not always. Google requires SPF or DKIM for all senders, and for DMARC only one of the two needs to pass and align. Follow what your provider's dashboard asks for, and if you do publish SPF, keep it to one record.

How long until it works after I add DNS records?

Often minutes to a few hours, but allow up to 48 hours, which is the window Brevo's documentation gives for re-checking. Google also advises letting SPF and DKIM run for at least 48 hours before turning on DMARC enforcement.

Can I just use my Gmail or Microsoft 365 mailbox as the SMTP server?

It can work for very low volume, but it ties form delivery to one mailbox's sending limits and stored credentials. A transactional provider is the better default for a site.

Will Mailneo send my WordPress form emails?

No. Mailneo sends through mailboxes and providers you connect and isn't an SMTP relay for a website's own mail, so use a transactional provider for the site itself.

deliverabilitysendlayerbrevosendgrid
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

Deliverability

421-4.7.0 Gmail Has Detected This Message Is Suspicious: Fix

The 421-4.7.0 "suspicious due to the nature of the content and/or the links" error means Gmail's content filter rejected your message after DATA, not an authentication check. Remove click tracking or move it to your own domain, drop URL shorteners, check link reputation, then retest with a plain message.

Sohail Hussain|10 min read
Deliverability

550 5.7.515 sending domain authentication level: how to fix it

550 5.7.515 means Outlook.com, Hotmail or Live rejected your message because the sending domain failed SPF, DKIM or DMARC checks. Make SPF and DKIM pass and align with the From domain, add every legitimate sending IP to SPF, publish a DMARC record, and stop sending bulk mail from free-mail addresses.

Sohail Hussain|10 min read
Deliverability

Brevo emails going to spam at Hotmail? Fix it before switching ESP

Switching ESP rarely fixes Hotmail spam or soft inbox placement from Brevo. SPF, DKIM, DMARC alignment, list quality and domain reputation travel with your domain. Check alignment in a real message header, test a clean engaged segment, read Postmaster Tools, and only then decide whether switching is worth it.

Sohail Hussain|10 min read
Deliverability

Brevo emails soft bouncing or stuck in processing at Gmail, Yahoo

If Brevo emails to Gmail and Yahoo soft bounce or sit "in processing," the usual causes are broken DMARC, a shared IP with poor reputation, mixed transactional and marketing traffic, or unengaged contacts. Fix DMARC first, separate the streams, suppress dead addresses, then ramp volume slowly.

Sohail Hussain|9 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free