When the contact form cannot send, who delivers the message?
A contact form that depends on one server call loses the message the moment that call fails. The fallback we shipped hands the message to the visitor’s own email app instead.
What changed this week
- 2026-11-13: when the server cannot send, the inquiry form opens the visitor’s email app with the message.
- 2026-11-14: the form now sends through the site’s own mailbox, straight to the inbox. The endpoint needs only its key.
How to do it
- Send through the site’s own mailbox. Our inquiry form posts to one endpoint that needs only its key and delivers straight to the inbox, so there is no third-party form service to configure, pay for or outlive.
- Treat every send failure the same way. Network error, bad response, missing key: the form does not show an error and stop. It opens the visitor’s email app with the subject and the typed message already filled in, so the message still reaches you.
- Build the fallback from the live form fields. The mailto link must carry exactly what the visitor typed at the moment the request failed. If the form resets before the fallback runs, the visitor is left with an empty mail window and no reason to type it again.
- Keep the two paths in one handler. One function submits, catches any failure, and falls through to the mailto. Two separate code paths drift apart and one of them stops being tested.
- Test the failure path on purpose. Remove the key or block the endpoint locally and submit the form. If your email app does not open with the message inside it, the fallback is not done.
My site has a contact form that posts to a serverless endpoint and sends mail from the site's own mailbox using a single key. Add a fallback: if the request fails for any reason (network error, non-2xx response, missing or wrong key), open the visitor's email app with a mailto link that carries the subject and the full message they typed, read from the live form fields at the moment of failure. Do not clear the form before the fallback runs. Keep submit and fallback in one handler. Then show me how to trigger the failure locally so I can watch the mail app open with my text inside it.