Lovable
Add email sending with SendDart to a Lovable project, storing your API key securely via Supabase.
Lovable is a platform for building sites, tools, apps, and projects via chat. You can add SendDart to a Lovable project by asking the chat to add email sending with SendDart.
1. Add your SendDart API key
Create a SendDart API key in the dashboard. Lovable may wire up email in a few ways:
- Store the API key as a secret via the Supabase integration *(highly recommended)*.
- Prompt you to provide your own API key.
- Add the API key directly in the code (least secure — avoid).
Prompt Lovable to store the key for SendDart using Supabase. The send itself runs in a Supabase Edge Function; in Deno/Edge environments it can POST to https://www.senddart.com/api/emails directly, or use the senddart Node SDK (npm install senddart) when the function targets a Node-compatible runtime.
2. Add a custom domain
By default you can only send email to your own address. To send to other recipients, add and verify a custom domain, then update the from address used by the edge function.
from address to your verified domain and redeploy the function so the change takes effect.