Lovable
Add email sending with MailBlastr 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 MailBlastr to a Lovable project by asking the chat to add email sending with MailBlastr.
1. Add your MailBlastr API key
Create a MailBlastr 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 MailBlastr using Supabase. The send itself runs in a Supabase Edge Function; in Deno/Edge environments it can POST to https://api.mailblastr.com/emails directly, or use the mailblastr Node SDK (npm install mailblastr) 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.