Web design and development notes for small businesses

,

Website Contact Form Not Working? Why Enquiries Go Missing

Ethan Miller

The most common mistake is assuming that a form which shows a ‘Thanks, message sent’ screen is a form that works. It isn’t. That message only tells you the website accepted the submission. It says nothing about whether the email left the server, passed spam checks or landed in a human inbox. If your website contact form is not working, you may never find out, because the only evidence is enquiries that never arrive.

Here are the questions I’d work through, in the order I’d check them.

Why do my contact form emails go to spam or never arrive?

Form emails usually fail because the receiving mail provider doesn’t trust the message. Most forms send mail ‘from’ your own domain, but the message actually leaves from your web host’s server, which your domain’s DNS records may not authorise. Gmail, Outlook and other UK providers treat that mismatch as suspicious and bin the message or send it to junk.

The typical culprit is a form set to send from the visitor’s address (say, the customer’s Gmail) to your address. That is spoofing as far as a mail server is concerned. The fix is to send from an address on your own domain, such as [email protected], and put the visitor’s email in the Reply-To header instead.

Small business owner checking a website contact form not working on a laptop
Photo by Hanna Pad on Pexels

How do I set up SPF and DKIM so form emails reach inboxes?

You add two DNS records to your domain: an SPF record listing the servers allowed to send for you, and a DKIM record that lets receivers verify each message was signed by your domain. Both are text (TXT) records, edited wherever your DNS is managed, usually your registrar or host.

SPF

SPF is a single TXT record on the root of your domain. A typical one looks like v=spf1 include:_spf.google.com ~all for a business using Google Workspace. Your email or form-sending service will give you the exact include: value. Two rules catch people out: you may only have one SPF record per domain (merge them, don’t add a second), and every service that sends as you, including your newsletter tool, needs to be in it.

DKIM

DKIM works with a key pair. Your email provider generates it and gives you a TXT record, often named something like selector._domainkey, to publish in DNS. Once it propagates, switch signing on in the provider’s admin panel. Without that last step the record sits there doing nothing.

DMARC

Add a DMARC record too. Google and Yahoo began requiring it for bulk senders in 2024, and having one helps smaller senders look legitimate. Start with a monitoring policy (p=none) and an address for reports, then tighten it later.

Should I use SMTP instead of the default mail function?

Yes. Sending through authenticated SMTP is the most reliable change you can make on a WordPress site. By default, WordPress uses PHP’s mail function, which sends from the web server with no authentication. An SMTP plugin connects the form to a proper mailbox or transactional service (your Google Workspace or Microsoft 365 account, or a service such as Postmark, Brevo or Amazon SES), so messages go out signed and authorised.

Shared hosting makes this more pressing. Many hosts limit or filter outgoing PHP mail because it is a favourite route for spammers, so messages can disappear with no error at all.

How can I test whether my contact form is actually working?

Submit it yourself, from a phone on mobile data, to an address at a different provider from your own. Send test messages to a Gmail account and an Outlook.com account, then check inbox, junk and the headers. In Gmail, ‘Show original’ displays whether SPF, DKIM and DMARC passed. If any say fail or neutral, you have found your problem.

Do this monthly, or after any change to hosting, plugins or DNS. A form can break silently after a plugin update. I’d also keep a copy of every submission in the website’s database (most form plugins can do this), so a failed email never means a lost enquiry.

What makes a form frustrating enough that people give up?

Vague errors and fiddly mobile fields cause plenty of quiet abandonment. ‘Something went wrong’ tells the visitor nothing, and many will simply leave rather than retry. Say which field failed and how to fix it, next to that field, in text that screen readers can also announce.

On mobile, check these:

  • Use the right input types: type='email' and type='tel' bring up the correct keyboard.
  • Set autocomplete attributes so phones can fill name, email and phone.
  • Keep labels visible above the field, not just placeholder text that vanishes on typing.
  • Make tap targets large enough for a thumb, and the submit button obvious.
  • Ask only for what you need. Every extra field costs responses.

Be careful with spam protection too. An aggressive CAPTCHA or an over-tuned anti-spam plugin can block real people. Invisible methods, such as a honeypot field or a service like Cloudflare Turnstile, cause far less friction. If you’re tightening other protections at the same time, our piece on website security beyond free SSL covers what else is worth adding.

What should I do first?

Run the test above today. If it fails, send from an address on your own domain, publish SPF, DKIM and DMARC records, and route mail through authenticated SMTP. The National Cyber Security Centre publishes guidance on email security if you want the technical background. Then store submissions in the database as a safety net, so you can see what arrived even when the inbox says nothing.

Frequently Asked Questions

Why is my contact form email going to spam?

Usually because the message fails authentication or is sent from an address the server isn’t authorised to use. Send from an address on your own domain, publish SPF, DKIM and DMARC records, and use authenticated SMTP rather than the server’s default mail function.

How do I check if SPF and DKIM are working?

Send a test email to a Gmail account, open the message, and choose ‘Show original’. Gmail lists SPF, DKIM and DMARC results as pass or fail. Free checkers such as MXToolbox can also look up your DNS records.

Can I have two SPF records on one domain?

No. A domain should have only one SPF record, and publishing two can cause both to fail. If you use several sending services, merge their include statements into a single record that ends with your chosen policy.

Ethan Miller

Written by

More notes

Leave a Reply

Your email address will not be published. Required fields are marked *