AI-built & no-code sites
How do I make the contact form on my Lovable site actually email me?
By the FormToMail team · Checked against official sources · Updated
Ask Lovable to POST the form to a form endpoint with `fetch()`, using the prompt below with your endpoint URL. If your project is connected to Supabase, the form may currently save to a table instead of emailing you: check that table for missed messages, then keep or remove the insert as you like.
| Typical generated form | After the fix | |
|---|---|---|
| On submit | Shows a toast, maybe inserts a row | POSTs to your endpoint |
| You get | Nothing, or a row in a table | An email with Reply-To set to the visitor |
| Spam | No filtering | Honeypot, link and duplicate checks |
Prompt for Lovable
Make the contact form send its data to my form endpoint.
On submit, prevent the default, then POST new FormData(form) with fetch to
https://getformtomail.com/f/YOUR_FORM_ID
with the header Accept: application/json.
Every input needs a name attribute (name, email, message).
Add a hidden input named _gotcha (display:none, tabindex -1) as a honeypot.
If the JSON answer has ok: true, show "Thanks! We'll reply soon." and reset the form;
otherwise show the error text. Don't use a database or an email API key in the browser.Check it worked
- Open the browser's developer tools (Network tab) and submit the form. No request at all means the submit handler only shows a message; nothing is sent anywhere.
- A request to your own domain or to a database (for example a Supabase table) means the message is stored, not emailed. Check that table: your missing messages may be there.
Quick answers
How do I make the contact form on my bolt or lovable site actually email me?
Have the builder POST the form to a form endpoint (prompt above).
Do I need an email API key in Lovable?
No. The endpoint sends the email; never put an email API key in front-end code.
Can I keep saving to Supabase?
Yes, ask Lovable to do both: insert the row and POST to the endpoint.
What to do next
Create the endpoint for your Lovable prompt.
Get your form endpointSources
Checked: . Prices, limits and features of other services change: confirm current values at the official links above. Product names belong to their owners; we are not affiliated with them.