Skip to main content

Email & Resend

Integrations & Backend · 7 articles

Can I customize the email templates?

Yes, you can customize email templates using React Email or by building custom HTML in your Edge Functions. Lovable auto-generates template components you can modify. Define templates in your Edge Function code, then customize styling, branding, and content. Use variables for dynamic content like confirmation links and user names.

Do I need a custom web domain to use an email domain?

No, you don't need a custom web domain to use an email domain. Email and web domains are separate. You can have your app on xxx.lovable.app while sending emails from your verified custom domain (e.g., noreply@yourcompany.com). Email domain setup is independent of web domain setup.

Do I need an external email provider like SendGrid or Resend?

Yes, for production email sending, you need an external email provider like Resend, SendGrid, or Mailgun. Lovable doesn't provide built-in email sending; it integrates with these providers via Supabase Edge Functions. Resend is the recommended choice and has generous free tier limits (3,000 verified emails/month).

Emails are not sending

Verify Resend API key is correctly configured and hasn't expired. Check that your email domain is verified (SPF, DKIM, DMARC records set). Ensure the 'From' address uses your verified domain. In Lovable, confirm Edge Functions are deployed via the Cloud tab. Check Resend dashboard for API errors or limits. Contact support@lovable.dev if unsure.

What are SPF, DKIM, and DMARC, and do I need to configure them?

SPF, DKIM, and DMARC are DNS-based authentication protocols that prove you own the domain and authorize email sending. SPF lists authorized senders; DKIM signs emails cryptographically; DMARC defines domain policy. All three are required for best deliverability. Resend provides the exact records to add to your DNS provider.

What is Resend?

Resend is a transactional email service that integrates with Supabase Edge Functions to send emails from your Lovable app. It supports confirmation emails, password resets, notifications, and marketing broadcasts. Resend handles delivery, tracking, and compliance, so you focus on building. It's free to start with a verified domain and supports up to 3,000 contacts.

Why are my Resend emails going to spam?

Emails may hit spam due to missing SPF, DKIM, or DMARC records. Verify your domain fully in Resend and ensure all DNS records are correctly configured. Use a recognizable sender name and avoid trigger words. Resend includes unsubscribe links automatically for compliance. Monitor sender reputation and test emails to catch issues before sending to users.