How do I email form submissions to myself?
Last checked 31 Aug 2026
Short answer
Connect an email integration (Resend is the standard option), then ask Lovable to trigger a server-side function that emails you the form data whenever it's submitted.
Email sending needs a server-side integration
Browsers can't send email directly and safely — the sending API key would be exposed. Lovable handles this with a connector: you link a Resend account (or similar), and the API key is stored server-side, called from a server function rather than the browser.
Set it up
- Ask Lovable to connect Resend: see how do I connect Resend to Lovable.
- Prompt the notification behaviour:
When the contact form is submitted, send me an email at [email protected] with the submitted name, email and message, using Resend.
Lovable creates a server function that calls Resend's API with the form data and your address as recipient.
Sender address matters
Resend requires a verified sending domain for anything beyond their test address. Until you verify your own domain, test emails may only deliver to the account owner's address. See how do I use my own email domain and why aren't form emails being delivered if messages aren't arriving.
Combine with storage
Emailing yourself is fragile as your only record — inbox search isn't a database. Most real projects do both:
Save each submission to an
enquiriestable and also email me a notification, using Resend.
What usually goes wrong
- Using an unverified domain: emails from
noreply@yourdomain.comwon't send until DNS records (SPF, DKIM) are verified. - Hardcoding the API key in the front end: this is a security risk and Lovable's server functions exist specifically to avoid it — the key should never appear in browser-visible code.
- No error handling: ask Lovable to show the user an error state if the email fails to send, rather than a silent failure that looks like success.
For anything beyond a simple notification (templates, multiple recipients, retries), it's worth having PromptSites.com review the setup once, since email deliverability issues are easy to miss until they cost you real enquiries.
Sources
Was this answer helpful?
Related questions
- AnswerWhere do Lovable form submissions go?Nowhere, by default — a form only exists on the front end until you connect a destination: a database table (Lovable Cloud/Supabase) and/or an outgoing email via an integration like Resend.
- AnswerHow do I save form submissions to a database?Connect Lovable Cloud (or your own Supabase project), then ask Lovable to create a table for submissions and wire the form's submit handler to insert a row into it, with row-level security limiting who can read the data.
- AnswerHow do I add CAPTCHA to Lovable?Ask Lovable to integrate a CAPTCHA provider such as Google reCAPTCHA or Cloudflare Turnstile, including the site key on the front end and server-side verification of the token before accepting the submission.
- AnswerHow do I connect Resend to Lovable?Open the Resend integration in Lovable (or ask in chat to connect Resend), authorise your Resend account, then prompt Lovable to use it for whatever emails you need sent.