What are custom emails
Custom emails allow your Lovable Cloud app to send authentication emails (signup confirmations, password resets, magic links, invitations, and more) from your own email domain instead of the default Lovable Cloud Auth sender. For example:noreply@notify.yourdomain.com or noreply@yourdomain.com
Using a dedicated sending subdomain helps protect your root domain’s reputation while keeping your branding consistent.
You can customize:
- Which email domain your project uses
- The sender subdomain configuration
- Email branding and visual style
- Authentication email templates and subject lines
SPF, DKIM, and DMARC), and delivery infrastructure. No external email provider accounts or API keys are required.
Supported custom email types
At the moment, custom emails support authentication emails only. Authentication emails are a type of transactional email related to account access and identity verification. They are automatically triggered by Cloud Auth when users perform specific security-related actions. These authentication emails include:- Confirm signup
Sent when a user creates an account and email confirmation is enabled. Verifies that the user owns the email address before activating the account. - Password reset
Sent when a user requests to reset their password. Allows secure password recovery. - Magic link
Sent when passwordless login is enabled and a user requests a login link. Authenticates the user without requiring a password. You can ask Lovable to enable magic link authentication if it is not already configured. - Invite
Sent when you invite a user to join your project (from Cloud → Users). Grants account access through a secure invitation link. - Email change
Sent when a user updates their email address. Confirms ownership of the new address before applying the change. - Reauthentication
Sent when a user must verify their identity before performing a sensitive action, such as changing a password. Typically includes a short-lived verification code. You can ask Lovable to enable reauthentication if it is not already configured.
Availability and usage
Custom emails are available on paid plans. Each paid workspace includes 50,000 authentication emails per month at no additional cost. Usage is calculated across the entire workspace. Additional authentication emails are billed at $1 per 1,000 emails.Why use custom emails
- Better deliverability: Emails sent from your own domain are more likely to reach the inbox instead of spam.
- More trust: Users see your domain in the From address, reinforcing credibility.
- Consistent branding: Authentication emails match your product identity.
- Managed setup: Lovable verifies your domain and configures the required DNS records.
- Authenticated sending: Lovable automatically sets up SPF, DKIM, and DMARC to authenticate your emails and improve inbox placement.
- Continuous monitoring: Lovable alerts you if DNS changes could impact email delivery.
Prerequisites
To use custom emails:- Lovable Cloud must be enabled for your project.
- Your workspace must be on a paid plan.
- You must own a domain and have access to manage its DNS settings.
- You must be a workspace admin or owner to add, delete, or verify domains.
How custom emails work
When you configure an email domain, Lovable:- Creates a transactional sender subdomain under your root domain, such as
notify.yourdomain.com - Guides you through DNS configuration using an automated setup flow
- Verifies your domain by checking required DNS records
- Automatically generates branded authentication email templates
- Deploys an auth email hook that routes authentication emails through your email domain
- Activates email delivery once DNS verification completes
Email domain scope and usage
Email domains are provisioned at the workspace level.- A workspace can have multiple email domains
- A verified domain can be used across multiple projects
- Each project selects which verified domain it uses
- Only one email domain can be active per project at a time
- Only domains with status Verified can send emails
- Custom emails can be enabled or disabled per project
Add an email domain
Select the domain you want to use for sending emails. This will be the domain your users see in their inbox. There are two ways to start:-
From the chat: Ask Lovable to set up custom emails and it will present a setup button. For example:
- From Cloud settings : Go to Cloud → Email and click Get started. This takes you to the custom email setup flow.
Set an email domain
-
Choose an existing workspace domain from the dropdown, or select Add a new email domain, then enter your root domain or subdomain, for example
yourdomain.com.Domains can have up to 5 levels, for examplea.b.c.example.com. - Click Continue.
Configure the sender subdomain
- By default, Lovable creates a
notifysubdomain for delivery, for examplenoreply@notify.yourdomain.com, but you can change the subdomain. - Optionally, you can enable Show as sent from @yourdomain.com so recipients see emails from
@yourdomain.comin their inbox, while your transactional subdomain handles delivery behind the scenes. - Click Set up domain.
Complete DNS configuration
NS zone delegation for your domain. If your DNS provider is not listed or you prefer manual control, you can configure DNS records yourself. Scroll to the bottom of the Select your domain provider Entri modal and choose Go to our manual setup.Both the automated and manual method require verifying ownership of your domain. Lovable will provision your domain and generate the required DNS records.- Automatic setup
- Manual setup
Wait for verification
- Applies your app’s brand colors
- Adds your logo if one exists in the project
- Matches tone and language used in your app
Email domain statuses
Email domains can move through the following statuses:| Status | Meaning |
|---|---|
| Pending | Setup has started and DNS configuration is in progress |
| Verifying | DNS records have been detected and verification is in progress |
| Setting up | Domain provisioning in progress |
| Verified (Active) | Domain is ready and can be used to send emails |
| Offline | Required DNS records were changed or removed after verification |
| Failed | Verification or provisioning failed |
Managing email domains
In Cloud → Custom emails, use the domain dropdown to access:- Analytics and logs: View delivery metrics for the email domain and email activity for the current project using that domain.
- Manage domains: View all workspace email domains and their status badges, inspect and copy DNS records, switch which domain the current project uses, manually verify a domain, add a domain, or delete a domain.
- Add a new domain: Add a new workspace email domain.
- Disable custom emails: Enable or disable custom emails for the current project. When disabled, authentication emails are sent using the default Cloud Auth sender instead of your custom templates.
Analytics and logs
The analytics view includes:- Metrics cards: Sent, delivered, bounced counts for the email domain
- Delivery chart: Delivered vs. failed emails for the email domain over 7, 30, or 90 days
- Email activity log: An expandable list of individual emails sent for the current project, showing recipient, status (completed, failed, pending), type (auth email or test email), timestamps, and detailed execution traces with error messages for failures
Customize authentication email templates
When custom emails are enabled, Lovable automatically generates branded authentication email templates for your project. The Custom emails page includes a tab for each template. Each tab shows:- From address
- Subject line
- Live preview of the email template rendered in an iframe
-
Send test options, including send a test email to your account or to a custom address.
Emails sent from newly configured domains may initially land in spam while reputation builds.
Automatic branding
Lovable applies your app’s branding automatically by:- Extracting CSS variables from
src/index.css(primary colors, fonts, border radius) - Detecting logo files in
public/andsrc/assets/ - Uploading a detected logo to a dedicated email assets storage bucket
- Adapting email copy to match your app’s tone and language
#ffffff to ensure consistent rendering across email clients. Inner components can use your brand colors.
What you can customize
You can ask Lovable to update:- Copy and tone
- Brand colors
- Layout and structure
- Images and logo placement
- Subject lines
Edit templates manually
If you prefer to edit code directly:- Authentication templates are located at
supabase/functions/_shared/email-templates/ - The sending logic is located at
supabase/functions/auth-email-hook/
auth-email-hook function for changes to take effect. Redeployment updates the backend function that renders and sends your authentication emails.
For example:
Email deliverability best practices
When sending authentication emails from a new domain, inbox placement may take time to stabilize. Inbox providers evaluate sender reputation over time based on engagement, authentication, and sending patterns. Follow these practices to improve deliverability and build a strong sender reputation.Warm up new domains gradually
Warm up new domains gradually
- First few days: Test emails may land in spam
- First few weeks: Deliverability improves as legitimate traffic builds reputation
- First few months: Reputation stabilizes with consistent, engaged sending
- Start sending with normal authentication traffic (user signups, password resets)
- Let volume grow naturally as your user base expands
- Maintain consistent sending patterns over weeks and months
- Ensure authentication emails are expected and triggered by real user actions
- Mark legitimate emails as “Not spam” in your inbox
- Sudden large spikes in email volume from a brand-new domain
- Sending bulk test emails immediately after setup
- Inconsistent sending (long gaps followed by sudden bursts)
- Panic-driven changes to domains or sender identity
Ensure domain authentication is valid
Ensure domain authentication is valid
SPF, DKIM, and DMARC when you set up your email domain.If DNS records are modified or misconfigured, authentication can fail and emails may land in spam.Always confirm the domain status is Verified in Cloud → Email.Send only legitimate, user-triggered emails
Send only legitimate, user-triggered emails
Keep authentication emails strictly transactional
Keep authentication emails strictly transactional
- Use straightforward subject lines (“Reset your password”, “Verify your email”)
- Clearly explain what the user needs to do
- Match the email to the action the user took
- Adding marketing content or upsells to auth emails
- Misleading or clickbait subject lines
- Promotional language in authentication emails
Maintain consistent sender identity
Maintain consistent sender identity
- From address
- Sender name
- Domain
Avoid spam-trigger formatting
Avoid spam-trigger formatting
- Use clear, descriptive subject lines
- Keep formatting simple and clean
- Use a balanced text-to-image ratio
- Include your brand name and a recognizable sender address
- Ensure links in the email match your sending domain whenever possible
- Use ALL CAPS in subject lines
- Add excessive punctuation (!!!)
- Create misleading subject lines
- Use image-heavy layouts
- Link to unrelated or mismatched domains
yourdomain.com, links inside the email should ideally point to yourdomain.com or its subdomains. Mismatched domains are commonly used in phishing attacks and may trigger spam filtering.Clear, predictable formatting and domain alignment improve trust and engagement.Monitor bounce rates and complaints
Monitor bounce rates and complaints
- Sent
- Delivered
- Bounced
- Review how email addresses are collected
- Validate inputs at signup
- Avoid retrying failed deliveries repeatedly
Limit internal testing
Limit internal testing
- Inbox providers evaluate engagement signals from all emails you send
- Repeated test emails to the same address create artificial traffic patterns
- Bouncing test emails to fake addresses damages your reputation
- Send a few test emails to yourself or your team
- Use real email addresses you control
- Avoid sending large batches of test emails
If emails land in spam
If emails land in spam
- Confirm the domain status is Verified
- Ensure DNS records are correctly configured
- Review subject lines and content
- Check bounce rates in Analytics and logs
- Reduce sudden spikes in sending volume
- Be patient. New domains need time to build trust with inbox providers
Encourage positive engagement signals
Encourage positive engagement signals
- Open the email
- Click the verification or reset link
- Complete the intended action
Understanding inbox provider algorithms
Understanding inbox provider algorithms
- Sender authentication: Are
SPF,DKIM, andDMARCconfigured correctly? (Lovable handles this automatically) - Sender reputation: What’s your history of bounces, complaints, and engagement?
- Content quality: Are subject lines clear? Is formatting clean? Do links match your domain?
- Engagement signals: Do users open emails? Click links? Reply? Or mark them as spam
- Sending patterns: Are you sending consistently? Or in sudden bursts?
Troubleshooting
Email domain is stuck in "Verifying"
Email domain is stuck in "Verifying"
- DNS records not fully propagated
NSdelegation incorrectTXTverification record missing- DNS configured on wrong domain level
- Recheck the exact DNS records shown in Cloud → Email
- Confirm records were added to the correct root domain
- Wait up to 48 hours for propagation
- Retry verification
Domain status shows Offline
Domain status shows Offline
- Review DNS records in Cloud → Email
- Restore missing
NSorTXTrecords - Re-verify the domain
Emails are not sending
Emails are not sending
- Email domain is linked to your project
- Domain status is Verified
- Custom emails are enabled for the project
- Cloud Auth is enabled
- You are triggering a supported authentication email type
High bounce rates in analytics
High bounce rates in analytics
- Invalid email addresses
- Typos during signup
- Repeated retries to invalid addresses
Test emails are landing in spam
Test emails are landing in spam
My email template changes are not showing
My email template changes are not showing
- Ensure the
auth-email-hookfunction was redeployed - Ask Lovable to redeploy your email templates
Use external tools to investigate deliverability issues
Use external tools to investigate deliverability issues
- Google Postmaster Tools
View sender reputation, spam rates, and authentication alignment for Gmail recipients. - Yahoo Sender Hub
Monitor complaint rates and sender reputation for Yahoo inboxes. - Spamhaus blocklist lookup
Check whether your domain, IP address, or email URLs appear on major blocklists. - Google Safe Browsing
Test links used in your emails to ensure they are not flagged as unsafe.
FAQ
What are custom authentication emails in Lovable?
What are custom authentication emails in Lovable?
Are authentication emails the same as transactional emails?
Are authentication emails the same as transactional emails?
Can I send marketing emails with custom emails?
Can I send marketing emails with custom emails?
Do custom emails require Lovable Cloud?
Do custom emails require Lovable Cloud?
Do I need a custom web domain to use an email domain?
Do I need a custom web domain to use an email domain?
Can I use a subdomain for email sending?
Can I use a subdomain for email sending?
notify.yourdomain.com for delivery.You can optionally display emails as coming from your root domain while delivery happens through the subdomain behind the scenes.Using a dedicated email subdomain is recommended because it helps protect your root domain’s reputation.Do I need an external email provider like SendGrid or Resend?
Do I need an external email provider like SendGrid or Resend?
SPF, DKIM, and DMARC, and delivery infrastructure. You do not need to manage API keys or third-party email provider accounts.What are SPF, DKIM, and DMARC, and do I need to configure them?
What are SPF, DKIM, and DMARC, and do I need to configure them?
SPF, DKIM, and DMARC are email authentication standards that help inbox providers verify that your emails are legitimate and not spoofed.When you send an email, providers such as Gmail or Outlook check that:- The email is authorized to be sent from your domain
- The message has not been altered in transit
- The domain owner has defined a policy for handling suspicious emails
- SPF (Sender Policy Framework): Authorizes which servers can send email for your domain
- DKIM (DomainKeys Identified Mail): Cryptographically signs emails to prevent tampering
- DMARC (Domain-based Message Authentication, Reporting, and Conformance): Defines how providers handle failed authentication and protects against spoofing
How many authentication emails are included per month?
How many authentication emails are included per month?
Can I use custom emails on the free plan?
Can I use custom emails on the free plan?
How long does DNS verification take?
How long does DNS verification take?
Why are my emails going to spam?
Why are my emails going to spam?
• Ensure DNS records have not changed
• Avoid sudden spikes in sending volume
• Avoid spam-trigger formatting
• Check bounce rates in Analytics and logsDeliverability improves over time with consistent, legitimate user activity.
Can I customize the email templates?
Can I customize the email templates?
- Copy and tone
- Brand colors
- Layout and structure
- Logos and images
- Subject lines
supabase/functions/_shared/email-templates/.Required authentication variables and callback links must remain intact.The outer email body background must remain white (#ffffff) to ensure consistent rendering across email clients. Inner components can use your brand colors.What happens if I disable custom emails?
What happens if I disable custom emails?
What happens if I delete an email domain?
What happens if I delete an email domain?