Blog

Contact form not sending emails? Find where the message stops

A “Thanks” screen only proves your page ran, not that the email arrived. Test your live form and trace five stops: the page, deploy, email service, mail server, and plan limit.

An orange 1970s wall mailbox with a chrome hmuform badge. A white envelope is stuck halfway in its slot.

Five months of “Thanks”

On 1 September 2020, a jazz festival asked its web developer why artists kept saying they had applied, even though the last application in the inbox was from 12 April. For nearly five months, the contact form had shown its thank-you page to every visitor.

The festival had moved its email to G Suite (now Google Workspace) that spring, and that was where the messages were stopping. As the developer wrote on GitHub:

“the email is being sent to your account, which rejects it because of suspected spam. It does not even make it to your spam folder.”

Nothing was wrong with the form itself. The message died further down the chain, out of sight. When a contact form fails silently, the drop happens at one of five stops. Check them in order:

  1. The page
  2. The deploy
  3. The email service
  4. The mail server
  5. The plan limit

1. The page shows “Thanks” without checking the response

Static hosts serve files, not form submissions. On 20 November 2026, we sent a POST request to a public static page on four hosts:

Host Response
GitHub Pages 405 Method Not Allowed
Cloudflare Pages 405 Method Not Allowed
Vercel 405 Method Not Allowed
Netlify (with no Netlify form on the page) 404 Not Found

With a plain HTML form that has action="#" or no action at all, the failure is obvious. The browser posts the form back to the current page (MDN) and drops the visitor on an error page.

JavaScript is what turns that failure silent. One small submit handler is enough:

contact.js
form.addEventListener("submit", async (event) => {
  event.preventDefault();
  await fetch("/", { method: "POST", body: new FormData(form) });
  showThanks();
});

fetch() does not throw on a 404 or 405. It only rejects when the network request itself fails (MDN). So the host returns an error, fetch() resolves anyway, and showThanks() runs right on schedule. Some handlers never call fetch() at all: they stop the form with event.preventDefault() and swap straight to the thank-you message.

contact.js
const form = document.querySelector("#contact");
const result = document.querySelector("#contact-result");

form.addEventListener("submit", async (event) => {
  event.preventDefault();
  let ok = false;
  try {
    const response = await fetch(form.action, {
      method: "POST",
      body: new FormData(form),
      headers: { Accept: "application/json" },
    });
    const data = await response.json();
    ok = response.ok && data.ok === true;
  } catch {}
  result.textContent = ok
    ? "Thanks. Your message is sent."
    : "Not sent. Please try again, or email us.";
});

hmuform returns { "ok": true } when it accepts a message. Other services use different response fields, so check your provider’s docs. If the server sends back an HTML error page instead of JSON, response.json() throws, ok stays false, and the visitor sees the error instead of a false confirmation.

2. It works locally, but breaks after deploy

A form that sends emails on localhost can still fail silently once you push to production.

First, check your environment variables. Adding an email API key in your host’s settings does not update a site that is already live. On Vercel, variable changes only apply to new deployments, and a variable scoped to Preview or Development will be missing in Production (Vercel docs). Netlify also requires a fresh build and deploy before new variables take effect (Netlify docs).

Second, if you use Netlify Forms with React or Vue, check how the form renders. Netlify detects forms by scanning your built HTML files at deploy time, and only when form detection is turned on. A form rendered only in the browser with JavaScript will not be found (Netlify docs). Netlify’s workaround is to include a hidden static HTML copy of the form with data-netlify="true", the same name, and the same fields, plus a hidden form-name input inside your JavaScript form.

Always run your test on the live URL after your final deploy. If a serverless function sends the email, check your host’s function logs for missing keys or runtime errors.

3. The email service blocks or drops it

Even when your form reaches an email provider, the provider may refuse to send it or drop it silently.

If you are still on Resend’s resend.dev test domain, it can only deliver to your own Resend account email (Resend docs). Your own test arrives in your inbox, so everything looks ready. The moment you switch the recipient to a client’s address, Resend returns a 403.

The quieter trap is a suppression list. After a hard bounce, or at some services a spam complaint, the recipient’s address is added to a block list. From then on, Amazon SES “accepts the message, but doesn’t send it” (AWS docs), and Resend skips the address across all of your domains (Resend docs). A single bounce during setup can stop every future email to that inbox until someone removes it from the list. Netlify Forms keeps a hard bounce list too, and Netlify support clears addresses from it (Netlify forum).

4. The receiving mail server rejects it

This is where the jazz festival’s applications disappeared. A receiving mail server does not always route suspicious mail to Spam. Sometimes it rejects the email outright before it ever reaches a folder.

If you send form emails yourself, two rules in Gmail’s sender guidelines matter right away:

  • Your sending domain needs SPF or DKIM authentication. Above 5,000 messages a day to Gmail, it needs SPF, DKIM, and DMARC.
  • Do not put a @gmail.com address in the From header when sending through another server. Google warns that it will begin to quarantine those messages, which may affect delivery.

Send from an authenticated domain you control, and put the visitor’s email in Reply-To so clicking Reply still answers them. A rejected message will never show up in Spam: you will only see it as bounced or blocked in your email service’s logs.

5. Your free plan hit its limit

Free form backends stop sending emails once you cross their monthly cap, and each one handles overflow differently. On 20 November 2026:

Service Free limit Over the limit
EmailJS 200 requests a month Requests are “safely dropped” (pricing)
Formspree 50 submissions a month Saved, with no notification email (help)
hmuform 250 messages a month Saved for 30 days (up to 100 a day), no email; upgrade to read and send again (pricing)
Web3Forms 250 submissions a month No new submissions until the next month (pricing)

Test before you launch

Before you call a site done, run one end-to-end check on the live URL:

  1. Deploy your changes, then open the live page in a browser.
  2. Submit the form with a message you can spot right away, such as “Test from the live site, 14:05”.
  3. Check the Network tab: the POST request should return a 2xx status, or a 3xx redirect to your thank-you page.
  4. Confirm the email landed in each recipient’s inbox, not their spam folder. For a client site, ask the client to check.
  5. Hit Reply and make sure it addresses the email you typed into the form.

Run those five checks again whenever you edit the form, change DNS records, or update your email settings.

How hmuform shows each delivery

A launch-day test proves your form works today. It will not warn you if a recipient’s mailbox starts bouncing three months from now. For that, you need a delivery status per recipient and an alert when something fails.

That is why we built hmuform. Put one form link in the action of your HTML form, or ask your coding agent to set it up. Every message gets its own delivery log in the dashboard:

Dwight Schrute12:45 AM

  • hello@studio-sun.comSentSent at 12:45 AM.
  • office@studio-sun.comRetryingTry 2 did not work. We try again at 12:51 AM.

“Sent” means our email service accepted the email for delivery. Like any sender, we cannot see what the receiving mail server does after handoff, so that pre-launch test still matters. A send gets up to 6 tries over about 11 hours.

On any day a message does not get through, the workspace owner gets one summary email listing the count by form, recipient, and reason: a failed last try, an address that is not confirmed or unsubscribed, or a workspace over its monthly or plan limit. From the dashboard, you can fix the issue and send them again.

Filtered spam goes to the form’s Spam folder without triggering an email, and borderline messages go to the inbox so real messages are not hidden. We keep spam for 30 days (up to 100 messages a day per form), giving you one more place to check if a message seems missing.

Spam we catch and test messages do not count toward your 250 monthly messages on Free, and the daily email warns the workspace owner once you reach 90% of your limit. See our plans, or read the API docs if a script or coding agent creates your forms.

All postsBack to top