A contact form not sending email is one of the most frustrating bugs a small site owner meets, because the page gives you nothing to work with. The button clicks, the fields were filled, sometimes a thank-you message appears, and yet the inbox stays empty. Nothing crashed. That silence is the clue: the break is happening somewhere between the visitor's click and your mail client, and you have to narrow down which stage failed before you change any code.
This guide walks a single live form through four checkpoints, in the order that costs the least time. You will read the actual network request, rule out browser-side blockers, check whether a handler accepted the data, and only then look at mail records. By the end you should know whether your form needs a wiring fix, a server fix, a mail fix — or whether a form widget is the right tool for the job.
What "not sending" actually means: three separate failure points
A form submission is an HTTP request. That is the whole mechanism: the page collects key/value pairs from named inputs and asks the browser to send them to a URL. MDN's explanation of sending form data puts it plainly: an HTML form is a way to configure an HTTP request, and the action and method attributes decide where it goes and how.
That single request can fail in three different places:
- The browser never sent anything. Inputs lack
nameattributes, a button has the wrongtype, native validation blocked the submit, or a script cancelled the event. - The request left but no endpoint accepted it. The
actionis missing or wrong, the host is static with no handler, or the mail script returned a server error. - The endpoint accepted the data, but the message never reached your inbox. Mail was sent and then filtered, rejected, or routed to spam because of DNS and domain rules.
Each stage produces a different symptom, which is why guessing wastes so much time. A missing name attribute and a missing SPF record both look identical from the visitor's side.
First test: read the network request yourself
Before touching any code, submit the form once with developer tools open. In Chrome or Edge, open DevTools, switch to the Network tab, clear it, then submit. Firefox users can use the Network Monitor. MDN documents exactly this workflow: select the request, then open the Request or Payload tab to see the form data.
Write down four things:
- Was a request created at all? No new entry means the browser blocked submission — go to the browser-side section.
- What method was used? A
GETsubmission puts data in the query string of the URL;POSTputs it in the request body. - What status code came back?
200or302suggests the endpoint accepted it.404means the URL is wrong.500means the handler ran and crashed. - What is in the payload? Field names and values should appear as pairs. If names are missing or blank, the data never assembled correctly.
If you see a clean request with correct payload and a 2xx response, you have already ruled out the first two stages. The problem is downstream, in mail delivery.
Browser-side causes: the submit never happened
When no request appears in the Network panel, the browser stopped the form. These are the usual culprits, roughly in order of frequency.
Inputs without a `name` attribute
The browser only serialises controls that have a name. An input with id="email" but no name produces nothing in the payload — the endpoint receives an empty submission and quietly discards it. This is especially common on AI-generated or copied forms. We cover the full audit in detected form widget name attribute missing submissions.
A button that does not submit
A <button> with no type attribute inside a form defaults to type="submit", which is usually correct. But a button used as a visual trigger with type="button" will do nothing on its own, and an <a> styled as a button never submits a form at all.
Native validation silently blocking the request
This one is sneaky. Browsers enforce constraints like required, type="email" and pattern before any request is made, and an invalid field blocks submission and shows a message. MDN's guide to client-side form validation notes that when an element is invalid, "the browser will block the form submission and display an error message." If that message appears off-screen, behind a sticky header, or inside a collapsed section, the visitor experiences a form that did nothing.
Test it: submit with an empty required field and watch for the native bubble. If nothing visible happens, check whether a custom error style is hiding it. Our guide to contact form error messages covers placing these where visitors actually see them.
A script cancelling the event
If some JavaScript calls preventDefault() on submit and its own fetch fails silently, the browser shows nothing in the URL and no visible error. In DevTools, open the Console tab before submitting — uncaught errors usually show up here.
Endpoint-side causes: the request arrived and died
The Network panel shows a request, but the status code tells a story.
404or the request goes to the page itself. Ifactionis empty or missing, MDN notes the data is sent to the URL of the page containing the form — which is a static page, so nothing processes it.- The form sits on a static host. A site served from plain HTML files has no server-side code, so no
actionURL can send an email. This is the single most common reason a static contact form silently fails. 500from a mail script. PHPmail(), a serverless function or a third-party endpoint returned an error. Check the host's error log; the script's own error message is usually far more specific than anything the browser shows.200but nothing happened. Some handlers return a friendly page even when the mail call failed. Grep the handler for its error path and confirm it actually reports failures.
A simple diagnostic: change action temporarily to a test endpoint you control, such as a request inspector service, submit once, and see whether the payload arrives. That isolates "the form sends" from "the handler mails".
Deliverability causes: sent but filtered before your inbox
If the request was accepted with a 2xx and your handler logs show the mail function ran, the message exists. It just did not land. Work through these:
- Search all folders including spam, promotions and any server-side quarantine. Ask the sender to check their outbox too.
- Check the sending domain's DNS records. Messages sent from a domain without SPF and DKIM records are frequently rejected or filed as spam by major providers. These records are published by whoever hosts your email sending, not by your website builder.
- Check the
Fromaddress. Sending as a domain you do not control — a personal address spoofed from your site's server — trips spam filters. Send from an address on a domain you own, and setReply-Toto the visitor. - Check the recipient's rules. A mailbox filter that moves anything from your own domain can quietly hide legitimate contact messages.
If you cannot get DNS access or the host does not support authenticated sending, changing the delivery route is usually faster than fighting the mail stack.
How the detected form widget fits — and where its behaviour ends
At this point you know whether the form sends and whether mail arrives. The WidgetJar detected form widget connects an HTML form you already run to WidgetJar — it does not require rebuilding your layout or rewriting your inputs. It is a realistic option when the diagnosis lands on "static host with no handler" or "mail keeps being filtered".
It is not a fix for every failure. If your inputs have no name attributes, no widget will invent the missing payload; fix the markup first. If native validation is blocking submission, the widget cannot override that check. And if your action points somewhere broken, decide deliberately whether the widget replaces that handler or sits alongside it.
If you already use another platform's handler, read detected form widget with an existing Netlify form before layering anything new on top, so you do not create two handlers racing each other. You can review the setup on the detected form widget page.
What to verify after you change anything
A form that works once is not proven. Run this short pass after any fix, whether you edited markup, swapped endpoints or connected a widget:
- Happy path: fill every field with real-looking values, submit, and confirm the message arrives with each field matching its label.
- Validation path: submit empty or with a malformed email. Confirm the browser blocks it and that the error is visible on a phone-sized screen.
- Mobile submission: repeat the happy path on a real phone, not just a resized window.
- No double-send: submit twice in a row and confirm you get two messages, not three or four. Duplicate handlers are a common side effect of adding a second service.
- Network check again: the request should show the payload you expect, and the response should be
2xx.
Record the date and result of each check. When the next "the form is broken" message arrives, you will know whether anything changed since the last verified pass.
A short checklist to keep by the form
Keep this beside the code:
- Every input has a unique, meaningful
name. - Every submit control has
type="submit". actionandmethodare explicit and point to a handler that exists.- Required fields are visible as required, and error text is on-screen.
- A test submission has been received in the real inbox, from a real device.
- Sending domain has SPF and DKIM records published.
Next step
Once the request is confirmed and the endpoint is the weak link, connecting your existing form is the shortest path forward. The detected form widget links the HTML form you already have to a working submission path without redesigning the page — start there, then re-run the verification pass above on desktop and mobile before you announce the fix.