← All guides Engineer

Contact Form Not Working

1 June 2026 · 2 min read · Part of: AI to Production · Step 3

Submit button works. Nothing in your inbox. Usually it is the endpoint, not the button.

Check in this order

  • Spam and promotions folders
  • Form action URL and API key in production
  • Domain DNS (SPF, DKIM) if using custom email
  • Hosting form limits or blocked SMTP
  • JavaScript errors on submit

Quick wins

Send a test to a Gmail address, verify the form posts to a live endpoint, and confirm env vars match production. Many AI sites ship with placeholder endpoints.

Common questions

Why did it work in preview?

Preview often uses the vendor's mail relay. Your domain in production needs correct DNS and a wired endpoint.

Interactive guide

1 / 5

step 1

What happens?

Tap one.

step 2

Three usual causes

1
No endpoint behind the form in production.
2
Bad route returns 404 or 500 on submit.
3
Spam filtering hides real leads in junk folders.

step 3

Fix path

step 4

Your takeaway

PLAN
Submit button works. Nothing in your inbox. Usually it is the endpoint, not the button.
Ship one improvement, then reassess with real data.