Lead Capture Recovery — Stop Silent Inquiry Loss
The inquiry form used to report success while the saved record was discarded. Content now lives in the repo as typed content files. An inquiry is emailed, and a failed send is shown as an error.
The Challenge
A live lead form told every visitor it had worked, while nothing durable was stored. Mail still went out, so the failure stayed invisible. The site no longer keeps content or inquiries in a CMS.
The Solution
Content now lives in the repo as typed content files. Inquiries go out by email on the same path as the other forms. If that send fails, the form says so, so a lost inquiry cannot look like a success. The earlier failure was a write the route caught and still reported as success.
Results
- Content lives in the repo as typed content files, with English, Dutch and Turkish side by side
- Inquiries are emailed, and a failed send is shown as an error
- The earlier miss was a refused write that the route still reported as success
- Runtime logs were what made that refused write visible
The inquiry form on the primary call to action used to return success to every visitor. Mail went out, and the saved record never landed. Content for this site now lives in the repo as typed content files, and an inquiry is an email.
Isolating the fault. Mail fails in the open when it cannot send: a missing key returns 503 and a provider error returns 502. The other path was a write that was refused. The route caught that refusal and still returned success, which is why the inbox looked healthy and the record was missing.
The evidence that settled it. Production logs showed the write refused, twice, on the inquiry route. The credentials could read and could not create. The catch block turned that refusal into a success response.
Fixing the lie, not just the symptom. Content now lives in the repo as typed content files. Inquiries go out by email. If the send fails, the form shows the error. A lost inquiry can no longer look like a success.