Home  ›  Blog

Why Contact Form Emails Go to Spam (and How to Fix Them)

Hands checking email on a phone beside a laptop
The form says “Thanks” — but the enquiry never reaches your inbox. The sender is usually the problem, not the form.

Your contact form works — the visitor sees “Thanks, we'll be in touch” — but the enquiry lands in your spam folder, or never arrives at all. The fix is almost never a new form. It is the way the form's email is sent: the message cannot prove who sent it, so Gmail and Outlook treat it as forged. Send the notification from your own domain address, put the visitor in Reply-To, and add three DNS records — SPF, DKIM and DMARC. Under an hour, and it costs nothing.

Losing enquiries to spam? Every site we build is tested with a real form submission before it goes live — see our custom web development service.

The 1-minute test that tells you if you have the problem

Do not start by changing settings. Send yourself a test, the way a customer would.

  1. Open your own contact form on your phone, on mobile data. Fill it in with a personal Gmail address and a real sentence.
  2. Submit it, then check two places: the inbox that should receive form mail, and its spam folder.
  3. Repeat once with a second address from a different provider, such as Outlook. One provider filtering you and the other delivering you means the problem is authentication, not the form.

If it arrives in the inbox both times, you are fine today — but repeat the test monthly, because a hosting change can break it silently.

Follow the email: 3 checkpoints where it stops

A contact form email passes through three steps: the website sends it, the sending server hands it to your email provider in a way it trusts, and your provider delivers it to your inbox. Each cause below breaks one of those steps.

CheckpointWhat you seeWhat it means
1. Stored submissionThe entry is in the form's submissions list — or it is notMissing: the form never sent anything. Present: the email step broke
2. Spam folder / quarantineThe message is in spam, or in an admin quarantineSent but not trusted — an authentication problem
3. Nowhere at allNothing in inbox, spam or quarantine after five minutesNever left the server, was rejected, or went to an address nobody reads

Google's Workspace support page says the same: usually the form itself is not the cause — how the message is sent is. A review of 150 real cases (DEV Community, November 2026) found the sending step was the weak point in 63 of them; the spam folder held the email in only 8.

A person typing on a laptop with an email inbox open on screen
Check the stored submissions first — if the entry is there, the form did its job and the email step is the problem.

Fix 1 — Stop sending “from” the visitor

Many forms put the visitor's address in the From field, so the email claims to come from them — a Gmail or Yahoo address — while actually being sent by your web host. Your host is not allowed to send for gmail.com, so the authentication fails and the message looks like a spoofed email. In that review of 150 cases, this one mistake accounted for 14 of them.

The fix is two lines in the form settings, and it changes nothing for the visitor:

Not sure what your form currently sends as? Get an instant estimate for a deliverability check.

Fix 2 — Send through a real, authenticated sender

On a WordPress site the classic failure is PHP's mail() function — the web server is not a real mail server and adds no proof of who sent it (23 of the 150 cases; 13 more where the host blocked outgoing mail).

On a static website the problem looks different — there is no server and no PHP at all — and this is the part most guides skip, because they assume WordPress. A static site's form points at a form service, and that service is the sender. Pick one that sends from your own domain address, not its shared address, and that stores a copy of every submission.

Our own contact form works this way: the site is plain HTML with no backend, and the form sends through Web3Forms with an AJAX call, so the visitor never leaves the page. The same pattern works with Formspree, Basin or Netlify Forms. Free tiers are generous — as of October 2026, Formspree's free plan covered 50 submissions a month and Web3Forms' covered 250 — but check the current plan, because free tiers change.

If your site does have a server, the equivalent fix is an SMTP plugin or mail library connected to a real mailbox — Google Workspace, Microsoft 365, Zoho, or a sending service such as Brevo. Our comparison of Brevo vs Instantly vs Lemlist covers the email-service side.

Fix 3 — Add the three DNS records that prove it is you

SPF, DKIM and DMARC are three DNS records on your domain — the proof Gmail and Outlook ask for before they trust a message. They cost nothing: your email provider gives you the exact values to paste in at your registrar or DNS host.

RecordWhat it provesWhat to add
SPFWhich servers may send email for your domainOne TXT record, e.g. v=spf1 include:_spf.google.com ~all. Two records are a permanent error (RFC 7208); at most 10 DNS lookups
DKIMA signature on each message, proving it left your domain unchangedA TXT or CNAME record under a selector your provider chooses, e.g. google._domainkey.yourdomain.com. Also switch DKIM on in the panel
DMARCWhat receivers do with mail that fails SPF or DKIMA TXT record at _dmarc.yourdomain.com, e.g. v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com. Start at p=none, then quarantine, then reject

Since February 2024, Google and Yahoo require every sender to Gmail to authenticate with at least SPF or DKIM; bulk senders — over 5,000 messages a day to Gmail — need all three, with the From domain aligned, and must keep their spam rate below 0.3% (Google sender guidelines). Microsoft applied similar requirements to high-volume Outlook.com senders in May 2025. So a form that worked for years without authentication can start losing enquiries without anyone touching it. Yahoo publishes a DMARC policy of p=reject (checked November 2026) — a form that forges a Yahoo visitor's address in the From field gets its mail rejected outright, not just filtered.

After adding the records, verify them: send a test submission, open it in Gmail, choose More, then Show original — a working setup shows dkim=pass and spf=pass. DNS changes can take a few hours to spread, so test again the next morning if the first check fails.

Fix 4 — The inbox side: filters, a second address, keep a copy

Sometimes the sending side is fine and the problem is in your own inbox:

Keep the spam out at the form itself, too: a honeypot field or a CAPTCHA stops most bots before they ever become an email.

Test it like a customer, every month

Deliverability is not a one-time fix. A hosting move or a changed DNS record can break it silently — the first sign is usually a customer calling to ask why nobody replied.

  1. Submit the form from your phone with a personal Gmail address. Check the inbox and the spam folder.
  2. Open one delivered message, choose Show original, confirm spf=pass and dkim=pass.
  3. Open the form's submissions list and confirm the entry is stored.
  4. If anything changed — a new host, mailbox or form service — test again that same day.

That is the whole routine. A form that sends from your own domain, through a real authenticated sender, with three DNS records behind it, and a stored copy of every submission, does not lose enquiries. If yours still loses them, the cause is usually a blocklist entry on a shared host or a filter at the receiving company. Send us the link on WhatsApp and we will tell you which checkpoint your form fails at — and if you want the whole site checked the same way, read how we build custom websites and Python automation.

Frequently asked questions

Why do my contact form emails go to spam in Gmail?
Gmail filters them because the message cannot prove who sent it: the form puts the visitor's address in the From field, or the sending server is not in your domain's SPF record and adds no DKIM signature. Send from your own domain, put the visitor in Reply-To, and add SPF, DKIM and DMARC records.

How do I stop contact form emails going to spam on a static website?
On a static site the form service is the sender, so pick one that sends from your own domain address — Web3Forms and Formspree both offer this — then add the SPF, DKIM and DMARC records your email provider gives you, and test with a real submission every month.

What are SPF, DKIM and DMARC in simple terms?
SPF is a DNS list of the servers allowed to send email for your domain. DKIM is a digital signature on each message, verified against a key in your DNS. DMARC ties the two together and tells receivers what to do with mail that fails. All three are TXT records you add once at your domain registrar or DNS host.

My form says “Thanks” but no email arrives at all. Is the form broken?
Usually not. Check the form's stored submissions first — if the entry is there, the form worked and the email step broke. Then check spam, any admin quarantine, and the notification address in the form settings. A review of 150 real cases found the sending step was the weak point in 63 of them, while the spam folder held the email in only 8.

Does adding SPF, DKIM and DMARC cost anything?
No. The records themselves are free — they are DNS entries you add at your registrar or DNS host, and your email provider gives you the exact values. What costs money is a sending service if you outgrow a free tier: as of October 2026, Formspree's free plan covered 50 submissions a month and Web3Forms' covered 250.