> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lovable.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Send branded emails from your own domain

> Send branded emails, including authentication emails and custom app emails, from your own email domain with automatic DNS, SPF, DKIM, and DMARC setup to improve deliverability, protect your domain reputation, and strengthen brand trust.

<head>
  <script type="application/ld+json">
    {`{"@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{"@type": "Question", "name": "Warm up new domains gradually", "acceptedAnswer": {"@type": "Answer", "text": "New email domains have no sending history. Inbox providers treat them cautiously because spammers often use fresh domains and abandon them quickly. Initial deliverability may fluctuate during the first few days or weeks. This is normal. Your domain's reputation builds gradually as real users engage with emails. This includes: - Authentication emails: Signups, password resets, email verifications - App emails: Order confirmations, shipping notifications, account updates Both email types contribute to your overall domain reputation. Using a dedicated transactional subdomain helps isolate authentication traffic and protect your primary domain reputation. Typical timeline - 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 What helps: - Start sending with normal authentication traffic (user signups, password resets) - Let volume grow naturally as your user base expands - Add app emails gradually as transaction volume grows - Maintain consistent sending patterns over weeks and months - Ensure emails are expected and triggered by real user actions - Mark legitimate emails as “Not spam” in your inbox What hurts: - 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 Reputation builds automatically with consistent, legitimate sending behavior over time."}}, {"@type": "Question", "name": "Ensure domain authentication is valid", "acceptedAnswer": {"@type": "Answer", "text": "Authentication must pass for emails to reach the inbox. Lovable automatically configures 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 → Emails."}}, {"@type": "Question", "name": "Send only legitimate, user-triggered emails", "acceptedAnswer": {"@type": "Answer", "text": "Authentication emails should only be triggered by real user actions, such as signing up or resetting a password. App emails should only be sent when directly related to user activity, for example: - Order confirmations: Only to the customer who placed the order - Shipping notifications: Only to customers with active shipments - Account updates: Only to users who made changes or need to be notified Avoid generating artificial traffic for testing or automation purposes. Unnatural traffic patterns can negatively affect domain reputation. Don't send to: - Email addresses that previously bounced - Users who unsubscribed from non-essential notifications - Inactive or closed accounts"}}, {"@type": "Question", "name": "Keep authentication and app emails strictly transactional", "acceptedAnswer": {"@type": "Answer", "text": "Authentication emails should clearly match the user's recent action and explain why the email was sent. App emails should focus on information relevant to the specific transaction or event. Good practices: - Use straightforward subject lines (\\"Reset your password\\", \\"Verify your email\\") - Include all necessary details (order numbers, tracking links, amounts, dates) - Clearly explain what the user needs to do - Match the email to the action the user took Avoid: - Adding marketing content or upsells to auth emails - Misleading or clickbait subject lines - Promotional language in authentication emails Mixing promotional content into transactional emails can trigger spam filters and reduce trust."}}, {"@type": "Question", "name": "Maintain consistent sender identity", "acceptedAnswer": {"@type": "Answer", "text": "Use a consistent: - From address - Sender name - Domain Frequent changes to sender identity reduce trust signals with inbox providers."}}, {"@type": "Question", "name": "Include unsubscribe options in app emails", "acceptedAnswer": {"@type": "Answer", "text": "Authentication emails (password resets, email verification, magic links) don't require unsubscribe links as they're necessary for service functionality. Lovable automatically adds unsubscribe functionality to all app email templates. When a user unsubscribes, their email is added to a suppression list and future app emails to that address are blocked automatically before sending. Don't remove the unsubscribe footer as this violates email sending requirements and will affect deliverability."}}, {"@type": "Question", "name": "Avoid spam-trigger formatting", "acceptedAnswer": {"@type": "Answer", "text": "When customizing email templates: Do: - Use clear, descriptive subject lines (\\"Your order has shipped\\", \\"Reset your password\\") - 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 Don't: - Use ALL CAPS in subject lines - Add excessive punctuation (!!!) - Create misleading subject lines - Use image-heavy layouts - Link to unrelated or mismatched domains Inbox providers look for consistency between the sender domain and the domains used in links. If your email is sent from 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."}}, {"@type": "Question", "name": "Monitor bounce rates and complaints", "acceptedAnswer": {"@type": "Answer", "text": "High bounce rates damage sender reputation. Use Analytics and logs to monitor: - Sent - Delivered - Bounced Hard bounces caused by invalid or mistyped addresses are especially harmful. Repeatedly sending to invalid addresses can reduce inbox placement. If bounce rates increase: - Review how email addresses are collected - Validate inputs at signup - Avoid retrying failed deliveries repeatedly Spam complaints also negatively affect reputation. Both authentication and app emails should always be expected and clearly explained."}}, {"@type": "Question", "name": "Limit internal testing", "acceptedAnswer": {"@type": "Answer", "text": "The Send test option in Cloud → Emails is useful for validation, but limit your testing. Why this matters: - 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 Better approach: - Send a few test emails to yourself or your team - Use real email addresses you control - Avoid sending large batches of test emails"}}, {"@type": "Question", "name": "If emails land in spam", "acceptedAnswer": {"@type": "Answer", "text": "If authentication emails are marked as spam: 1. Confirm the domain status is Verified 2. Ensure DNS records are correctly configured 3. Review subject lines and content 4. Check bounce rates in Analytics and logs 5. Reduce sudden spikes in sending volume 6. Be patient. New domains need time to build trust with inbox providers Deliverability improves with consistent, legitimate sending behavior over time."}}, {"@type": "Question", "name": "Encourage positive engagement signals", "acceptedAnswer": {"@type": "Answer", "text": "Inbox providers consider engagement when evaluating sender reputation. Authentication emails naturally generate positive signals when users: - Open the email - Click the verification or reset link - Complete the intended action App emails generate positive signals when users: - Open order confirmations to check details - Click tracking links in shipping notifications - Interact with account update information Clear messaging and expected flows increase engagement and improve long-term inbox placement."}}, {"@type": "Question", "name": "Keep emails small and accessible", "acceptedAnswer": {"@type": "Answer", "text": "Gmail clips emails larger than 102 KB. Keep your total email size under 100 KB to ensure your content displays fully. Best practices: - Optimize images before embedding them in app emails - Avoid large embedded images in receipts or order confirmations - Keep order details and transaction information concise - Consider linking to images hosted on your domain instead of embedding large files Lovable includes plain text versions of emails automatically for accessibility and as a fallback for email clients that don't support HTML."}}, {"@type": "Question", "name": "Avoid aggressive tracking for transactional emails", "acceptedAnswer": {"@type": "Answer", "text": "While link tracking and open tracking can be useful for measuring engagement with marketing emails, they can hurt deliverability for transactional emails. Why this matters: When a shipping notification or order confirmation link doesn't lead directly to your domain, it can make the email look suspicious to inbox providers. Recommendation: For app emails like order confirmations and shipping notifications, use direct links to your domain rather than tracking redirects whenever possible."}}, {"@type": "Question", "name": "Understanding inbox provider algorithms", "acceptedAnswer": {"@type": "Answer", "text": "Inbox providers don't share their spam filtering criteria publicly (to prevent spammers from gaming the system). However, they generally evaluate: - Sender authentication: Are SPF, DKIM, and DMARC configured 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? Think: \\"What would a phisher do?\\" Then do the opposite. Inbox providers want to protect their users, so demonstrate at every step that you're a legitimate sender with no malicious intent."}}, {"@type": "Question", "name": "Domain status shows Offline", "acceptedAnswer": {"@type": "Answer", "text": "This means required DNS records were changed, removed, or expired after verification. What to do: - Review DNS records in Cloud → Emails - Restore missing NS or TXT records - Re-verify the domain"}}, {"@type": "Question", "name": "Emails are not sending", "acceptedAnswer": {"@type": "Answer", "text": "Check: - Email domain is linked to your project - Domain status is Verified - Emails are enabled for the project - For authentication emails: Cloud Auth is enabled, and you are triggering a supported auth event type - The correct edge function is deployed - Emails are rate limited to 100 emails per hour per workspace to protect deliverability and system stability. If you need a higher limit, contact Lovable Support. Use Send test on a template tab and check Analytics and logs for delivery failures or bounces."}}, {"@type": "Question", "name": "High bounce rates in analytics", "acceptedAnswer": {"@type": "Answer", "text": "Common causes: - Invalid email addresses - Typos during signup - Repeated retries to invalid addresses Validate email input at signup and avoid retrying hard bounces."}}, {"@type": "Question", "name": "Test emails are landing in spam", "acceptedAnswer": {"@type": "Answer", "text": "This is common for newly provisioned domains. Avoid sending large volumes of internal test emails. Allow organic user-triggered emails to build reputation over time."}}, {"@type": "Question", "name": "My email template changes are not showing", "acceptedAnswer": {"@type": "Answer", "text": "If you edited template files but users are still receiving old versions: - Ensure the corresponding edge function was redeployed - Ask Lovable to redeploy your email templates Template changes only take effect after redeployment."}}, {"@type": "Question", "name": "Use external tools to investigate deliverability issues", "acceptedAnswer": {"@type": "Answer", "text": "If emails are consistently landing in spam or being rejected, you can use the following tools for deeper diagnostics. These tools are optional and most useful for higher-volume senders. - 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. These tools help diagnose reputation or blocklist issues that may impact inbox placement."}}, {"@type": "Question", "name": "What is the difference between authentication emails and app emails?", "acceptedAnswer": {"@type": "Answer", "text": "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, such as sign up, reset a password, or accept an invite. Lovable provides six built-in templates that you can generate when needed. App emails are a type of transactional email sent in response to user activity or events in your app. They are triggered by your application logic when something happens, like a purchase or update. There are no built-in templates, you decide when to send them and what they contain. Ask Lovable to add the functionality, such as notifications, confirmations, receipts, and other updates, and it will generate the templates for you."}}, {"@type": "Question", "name": "Do I need to set up different domains for authentication and app emails?", "acceptedAnswer": {"@type": "Answer", "text": "No. Both email types use the same custom domain and the same setup process."}}, {"@type": "Question", "name": "Can I send marketing emails?", "acceptedAnswer": {"@type": "Answer", "text": "No. Only transactional emails are supported, such as signup confirmations, password resets, order confirmations, and shipping notifications. Marketing emails, such as newsletters, promotional emails, product announcements, and similar messages are not supported."}}, {"@type": "Question", "name": "Do emails require Lovable Cloud?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Emails require Lovable Cloud and integrate with Cloud Auth to send authentication emails."}}, {"@type": "Question", "name": "Do I need a custom web domain to use an email domain?", "acceptedAnswer": {"@type": "Answer", "text": "No. Your web custom domain controls where your app is hosted. A custom email domain controls which domain your emails are sent from. These are separate configurations because web hosting and email delivery use different DNS records and infrastructure. You can use a completely different root domain for email sending as long as you control its DNS. However, using a domain that aligns with your product brand is recommended for user trust and deliverability. Hosting your app on a custom domain does not automatically configure email sending."}}, {"@type": "Question", "name": "Can I use a subdomain for email sending?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Lovable automatically creates a transactional subdomain such as 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."}}, {"@type": "Question", "name": "Do I need an external email provider like SendGrid or Resend?", "acceptedAnswer": {"@type": "Answer", "text": "No. Lovable manages domain verification, DNS configuration, authentication records such as SPF, DKIM, and DMARC, and delivery infrastructure. You do not need to manage API keys or third-party email provider accounts."}}, {"@type": "Question", "name": "What are SPF, DKIM, and DMARC, and do I need to configure them?", "acceptedAnswer": {"@type": "Answer", "text": "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 If authentication fails, emails may be marked as spam, rejected, or damage your domain reputation. Lovable automatically configures and maintains: - 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 You do not need to manually configure these records. Lovable sets them up during domain verification and continuously monitors them. If authentication records are modified, removed, or expire, you are notified so they can be restored."}}, {"@type": "Question", "name": "How many emails are included per month?", "acceptedAnswer": {"@type": "Answer", "text": "Each paid workspace includes 50,000 transactional emails per month at no additional cost. Usage is calculated across the entire workspace. Additional emails are billed at $1 per 1,000 emails and deducted from your Cloud and AI balance."}}, {"@type": "Question", "name": "Can I use emails on the free plan?", "acceptedAnswer": {"@type": "Answer", "text": "No. Emails are available on paid plans only. Free plans use the default Lovable Cloud Auth sender."}}, {"@type": "Question", "name": "How long does DNS verification take?", "acceptedAnswer": {"@type": "Answer", "text": "DNS changes typically propagate within a few hours, but can take up to 48 hours. You can check the domain status in Cloud → Emails. The status updates automatically once verification completes."}}, {"@type": "Question", "name": "Why are my emails going to spam?", "acceptedAnswer": {"@type": "Answer", "text": "New email domains start with no sending reputation. If emails land in spam: • Confirm the domain status is Verified • Ensure DNS records have not changed • Avoid sudden spikes in sending volume • Avoid spam-trigger formatting • Check bounce rates in Analytics and logs Deliverability improves over time with consistent, legitimate user activity."}}, {"@type": "Question", "name": "Can I customize the email templates?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. You can customize: - Copy and tone - Brand colors - Layout and structure - Logos and images - Subject lines You can ask Lovable to update the templates or edit them directly in supabase/functions/_shared/. Required authentication variables and callback links must remain intact in auth emails, as well as the unsubscribe footer in app email templates. The outer email body background must remain white (#ffffff) to ensure consistent rendering across email clients. Inner components can use your brand colors."}}, {"@type": "Question", "name": "What happens if I disable emails?", "acceptedAnswer": {"@type": "Answer", "text": "If emails are disabled for a project, authentication emails continue sending using the default Lovable Cloud Auth sender instead of your branded templates. App emails stop sending."}}, {"@type": "Question", "name": "What happens if I delete an email domain?", "acceptedAnswer": {"@type": "Answer", "text": "Deleting an email domain is a workspace-wide action. All projects using that domain will immediately fall back to the default Lovable Cloud Auth sender and app emails will stop sending."}}]}`}
  </script>
</head>

## Overview

Emails allow your Lovable Cloud app to send **authentication emails** and custom **app emails** from your own email domain.

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
* Email templates and subject lines

Lovable handles domain verification, DNS configuration, email authentication (<Tooltip tip="Authorizes which servers can send email for your domain" headline="SPF (Sender Policy Framework)">SPF</Tooltip>, <Tooltip tip="Cryptographically signs emails to prevent tampering" headline="DKIM (DomainKeys Identified Mail)">DKIM</Tooltip>, and <Tooltip tip="Defines how providers handle failed authentication and protects against spoofing" headline="DMARC (Domain-based Message Authentication, Reporting, and Conformance)">DMARC</Tooltip>), and delivery infrastructure. No external email provider accounts or API keys are required.

## Supported email types

You can send authentication emails and custom app emails.

### Authentication emails

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.

Lovable provides six built-in templates you can use:

* **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.

See [Generate and customize email templates](#generate-and-customize-email-templates) for more information.

### App emails

App emails are a type of transactional email sent in response to user activity or events in your app. They are triggered by your application logic when something happens, like a purchase or update. There are no built-in templates, you decide when to send them and what they contain.

Ask Lovable to add the required functionality, such as shipping notifications, order confirmations, purchase receipts, and other updates, and it will generate the templates for you. Lovable also handles unsubscribe automatically by adding an unsubscribe link to the email footer.

See [Generate and customize email templates](#generate-and-customize-email-templates) for more information.

## Availability and usage

* Emails are available on **paid plans**.
* Each paid workspace includes **50,000 transactional emails per month** at no additional cost. Usage is calculated across the entire workspace. Additional emails are billed at \$1 per 1,000 emails and deducted from your [Cloud and AI balance](/integrations/cloud#usage-based-cloud-and-ai-pricing).
* Emails are rate limited to **100 emails per hour per workspace** to protect deliverability and system stability. If you need a higher limit, contact [Lovable Support](https://lovable.dev/support).

## Why use 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:** 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](#what-are-spf-dkim-and-dmarc-and-do-i-need-to-configure-them) to authenticate your emails and improve inbox placement.
* **Continuous monitoring:** Lovable alerts you if DNS changes could impact email delivery.

## Prerequisites

To use emails:

* [Lovable Cloud](/integrations/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 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
* Provides six built-in branded authentication email templates that you can generate and customize
* Generates custom app email templates based on the functionality you request, such as confirmations, notifications, and updates
* Activates email delivery once DNS verification completes

After domain verification, emails are sent from your domain.

### 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
* 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 emails and it will present a setup button. For example:
  ```text theme={null}
  I want to send password reset emails from my domain.
  ```
* **From Cloud settings**: Go to **Cloud → Emails** and click **Get started**. This takes you to the email setup flow.

<Steps>
  <Step title="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`.
          <Note>
            Domains can have up to 5 levels, for example `a.b.c.example.com`.
          </Note>
    - Click **Continue**.
  </Step>

  <Step title="Configure the sender subdomain">
    Configure the subdomain prefix that will be used for sending emails. The right-side preview shows a simulated inbox with example emails from your configured domain.

    * By default, Lovable creates a `notify` subdomain for delivery, for example `noreply@notify.yourdomain.com`, but you can change the subdomain.
    * Optionally, enable **Show as sent from @yourdomain.com** so recipients see emails from `@yourdomain.com` in their inbox, while your transactional sender subdomain handles delivery behind the scenes.
    * Click **Set up domain**.
  </Step>

  <Step title="Complete DNS configuration">
    After clicking **Set up domain**, Lovable launches an **automated DNS configuration flow** (powered by Entri) that guides you through setting up the required `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 methods require verifying ownership of your domain. Lovable will provision your domain and generate the required DNS records.

    <Tabs>
      <Tab title="Automatic setup">
        Follow the on-screen prompts to log in to your DNS provider and authorize Entri to update your DNS records.
      </Tab>

      <Tab title="Manual setup">
        1. Copy the displayed DNS records.
           * `TXT` record for domain verification
           * `NS` records pointing to Lovable's nameservers
        2. Track your progress with the **I have copied X/Y records** counter.
        3. Add the copied DNS records directly into your domain registrar or DNS provider.

        You can also forward these instructions to a colleague if someone else manages your DNS.
      </Tab>
    </Tabs>
  </Step>

  <Step title="Wait for verification">
    After DNS is configured, you're taken back to the **Emails** page in your project.

    A progress panel shows the current state of your domain setup and a countdown timer for each setup step. See [Email domain statuses](#email-domain-statuses) to learn what each status means.

    <Note>
      DNS changes typically propagate within a few hours, but may take up to 48 hours.
    </Note>

    While DNS verification is in progress, you can start setting up your authentication and app email templates. See [Generate and customize email templates](#generate-and-customize-email-templates) for more information.
  </Step>
</Steps>

Lovable automatically detects when DNS verification completes and activates your domain.

Once the domain status changes to **Verified**, emails begin sending from your domain.

<Note>
  Newly provisioned domains start with a neutral reputation. Initial deliverability may fluctuate while your domain builds trust with inbox providers through consistent, legitimate sending. See [Email deliverability best practices](#email-deliverability-best-practices) for more information.
</Note>

## 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                             |
| **Domain removed**    | The domain was deleted from the workspace                       |

<Warning>
  Domains are continuously monitored. If required DNS records drift, are removed, or expire, the domain may move to an inactive state until re-verified.
</Warning>

## Generate and customize email templates

The **Emails** page includes two tabs, **Auth emails** and **App emails**, where you can preview the generated templates for your app. Email templates are not generated automatically.

To generate email templates:

* **Auth email templates**\
  Go to the **Auth emails** tab and click **Customize auth emails**. Lovable generates six built-in branded templates.
* **App email templates**\
  Ask Lovable to add the required functionality, such as notifications, confirmations, or receipts. It will generate the corresponding email templates for you. For example:
  ```text wrap theme={null}
  Add order confirmation emails to my app. When an order is placed, send a confirmation email to the customer.
  ```

Each template shows:

* **From** address
* **Subject** line
* **Live preview** of the email template rendered in an iframe
* **Send test** options, including sending a test email to your account or to a custom address.
  <Note>
    Emails sent from newly configured domains may initially land in spam while reputation builds.
  </Note>

### Automatic branding

When generating the email templates, 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/` and `src/assets/`
* Uploading a detected logo to a dedicated email assets storage bucket
* Adapting email copy to match your app's tone and language

The outer email body background is always `#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

<Warning>
  The outer email body background must remain white (`#ffffff`) to ensure consistent rendering across email clients. Inner components can use your brand colors.
</Warning>

For example:

```wrap theme={null}
Match the emails to my brand by using #2563eb for buttons and headings, add my logo at the top, remove emojis, make the tone professional but friendly, move the button higher in the layout, add a footer with support@myapp.com, and update subject lines to start with my app name.
```

Lovable updates templates while preserving required information, such as authentication variables, secure callback links, and the unsubscribe footer.

### Edit templates manually

If you prefer to edit code directly:

* **Authentication emails**
  * Templates are located at `supabase/functions/_shared/email-templates/`
  * The sending logic is located at `supabase/functions/auth-email-hook/` Required authentication variables and callback links must remain intact, or authentication flows will break.
* **App emails**
  * Templates are located at `supabase/functions/_shared/transactional-email-templates/`
  * The sending logic is located at `supabase/functions/send-transactional-email/` The unsubscribe footer in app email templates must remain intact. Removing it violates email sending requirements and will affect deliverability.

Templates use React Email components with inline styles (email clients do not support external CSS).

After editing template files or subject lines, you must ask Lovable to redeploy for changes to take effect. For example:

```text theme={null}
Redeploy my email templates
```

## Managing email domains

In **Cloud → 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.
  <Warning>
    Deleting a domain is a **workspace-wide action**. This will stop sending emails from that domain. Any project using that domain will automatically fall back to default authentication emails and other app emails will stop sending.
  </Warning>
* **Add a new domain:** Add a new workspace email domain.
* **Disable emails**: Enable or disable emails for the current project. When disabled, authentication emails continue sending using the default Cloud Auth sender instead of your custom email domain and templates, and other app emails stop sending.

### Analytics and logs

The analytics and logs view shows delivery metrics for the connected domain over 7, 30, or 90 days, and a log of recent emails sent for the current project.

* **Metrics cards**:
  * **Sent**: Emails accepted and queued for delivery
  * **Delivered**: Emails successfully delivered to recipient inboxes
  * **Bounced**: Emails rejected by the recipient mail server
* **Delivery chart**: Delivered (blue) vs. failed (red) emails for the email domain. Hover over any point to see the exact counts for that hour.
* **Email activity log**: An expandable list of recent emails sent for the current project, showing recipient, status (completed, failed, pending), type (auth email, app email, or test email), timestamps, and detailed execution traces with error messages for failures.

## Email deliverability best practices

When sending 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.

<AccordionGroup>
  <Accordion title="Warm up new domains gradually">
    New email domains have no sending history. Inbox providers treat them cautiously because spammers often use fresh domains and abandon them quickly.

    Initial deliverability may fluctuate during the first few days or weeks. This is normal.

    Your domain's reputation builds gradually as real users engage with emails. This includes:

    * Authentication emails: Signups, password resets, email verifications
    * App emails: Order confirmations, shipping notifications, account updates

    Both email types contribute to your overall domain reputation.

    Using a dedicated transactional subdomain helps isolate authentication traffic and protect your primary domain reputation.

    **Typical timeline**

    * 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

    **What helps:**

    * Start sending with normal authentication traffic (user signups, password resets)
    * Let volume grow naturally as your user base expands
    * Add app emails gradually as transaction volume grows
    * Maintain consistent sending patterns over weeks and months
    * Ensure emails are expected and triggered by real user actions
    * Mark legitimate emails as “Not spam” in your inbox

    **What hurts:**

    * 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

    Reputation builds automatically with consistent, legitimate sending behavior over time.
  </Accordion>

  <Accordion title="Ensure domain authentication is valid">
    Authentication must pass for emails to reach the inbox. Lovable automatically configures `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 → Emails**.
  </Accordion>

  <Accordion title="Send only legitimate, user-triggered emails">
    Authentication emails should only be triggered by real user actions, such as signing up or resetting a password.

    App emails should only be sent when directly related to user activity, for example:

    * Order confirmations: Only to the customer who placed the order
    * Shipping notifications: Only to customers with active shipments
    * Account updates: Only to users who made changes or need to be notified

    Avoid generating artificial traffic for testing or automation purposes. Unnatural traffic patterns can negatively affect domain reputation.

    Don't send to:

    * Email addresses that previously bounced
    * Users who unsubscribed from non-essential notifications
    * Inactive or closed accounts
  </Accordion>

  <Accordion title="Keep authentication and app emails strictly transactional">
    Authentication emails should clearly match the user's recent action and explain why the email was sent.

    App emails should focus on information relevant to the specific transaction or event.

    **Good practices**:

    * Use straightforward subject lines ("Reset your password", "Verify your email")
    * Include all necessary details (order numbers, tracking links, amounts, dates)
    * Clearly explain what the user needs to do
    * Match the email to the action the user took

    **Avoid**:

    * Adding marketing content or upsells to auth emails
    * Misleading or clickbait subject lines
    * Promotional language in authentication emails

    Mixing promotional content into transactional emails can trigger spam filters and reduce trust.
  </Accordion>

  <Accordion title="Maintain consistent sender identity">
    Use a consistent:

    * From address
    * Sender name
    * Domain

    Frequent changes to sender identity reduce trust signals with inbox providers.
  </Accordion>

  <Accordion title="Include unsubscribe options in app emails">
    Authentication emails (password resets, email verification, magic links) don't require unsubscribe links as they're necessary for service functionality.

    Lovable automatically adds unsubscribe functionality to all app email templates. When a user unsubscribes, their email is added to a suppression list and future app emails to that address are blocked automatically before sending. Don't remove the unsubscribe footer as this violates email sending requirements and will affect deliverability.
  </Accordion>

  <Accordion title="Avoid spam-trigger formatting">
    When customizing email templates:

    **Do**:

    * Use clear, descriptive subject lines ("Your order has shipped", "Reset your password")
    * 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

    **Don't**:

    * Use ALL CAPS in subject lines
    * Add excessive punctuation (!!!)
    * Create misleading subject lines
    * Use image-heavy layouts
    * Link to unrelated or mismatched domains

    Inbox providers look for consistency between the sender domain and the domains used in links. If your email is sent from `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.
  </Accordion>

  <Accordion title="Monitor bounce rates and complaints">
    High bounce rates damage sender reputation.

    Use **Analytics and logs** to monitor:

    * Sent
    * Delivered
    * Bounced

    Hard bounces caused by invalid or mistyped addresses are especially harmful. Repeatedly sending to invalid addresses can reduce inbox placement.

    If bounce rates increase:

    * Review how email addresses are collected
    * Validate inputs at signup
    * Avoid retrying failed deliveries repeatedly

    Spam complaints also negatively affect reputation. Both authentication and app emails should always be expected and clearly explained.
  </Accordion>

  <Accordion title="Limit internal testing">
    The **Send test** option in **Cloud → Emails** is useful for validation, but limit your testing.

    **Why this matters**:

    * 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

    **Better approach**:

    * Send a few test emails to yourself or your team
    * Use real email addresses you control
    * Avoid sending large batches of test emails
  </Accordion>

  <Accordion title="If emails land in spam">
    If authentication emails are marked as spam:

    1. Confirm the domain status is **Verified**
    2. Ensure DNS records are correctly configured
    3. Review subject lines and content
    4. Check bounce rates in **Analytics and logs**
    5. Reduce sudden spikes in sending volume
    6. Be patient. New domains need time to build trust with inbox providers

    Deliverability improves with consistent, legitimate sending behavior over time.
  </Accordion>

  <Accordion title="Encourage positive engagement signals">
    Inbox providers consider engagement when evaluating sender reputation.

    Authentication emails naturally generate positive signals when users:

    * Open the email
    * Click the verification or reset link
    * Complete the intended action

    App emails generate positive signals when users:

    * Open order confirmations to check details
    * Click tracking links in shipping notifications
    * Interact with account update information

    Clear messaging and expected flows increase engagement and improve long-term inbox placement.
  </Accordion>

  <Accordion title="Keep emails small and accessible">
    Gmail clips emails larger than 102 KB. Keep your total email size under 100 KB to ensure your content displays fully.

    **Best practices:**

    * Optimize images before embedding them in app emails
    * Avoid large embedded images in receipts or order confirmations
    * Keep order details and transaction information concise
    * Consider linking to images hosted on your domain instead of embedding large files

    Lovable includes plain text versions of emails automatically for accessibility and as a fallback for email clients that don't support HTML.
  </Accordion>

  <Accordion title="Avoid aggressive tracking for transactional emails">
    While link tracking and open tracking can be useful for measuring engagement with marketing emails, they can hurt deliverability for transactional emails.

    Why this matters: When a shipping notification or order confirmation link doesn't lead directly to your domain, it can make the email look suspicious to inbox providers.

    Recommendation: For app emails like order confirmations and shipping notifications, use direct links to your domain rather than tracking redirects whenever possible.
  </Accordion>

  <Accordion title="Understanding inbox provider algorithms">
    Inbox providers don't share their spam filtering criteria publicly (to prevent spammers from gaming the system). However, they generally evaluate:

    * **Sender authentication**: Are `SPF`, `DKIM`, and `DMARC` configured 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?

    Think: "What would a phisher do?" Then do the opposite. Inbox providers want to protect their users, so demonstrate at every step that you're a legitimate sender with no malicious intent.
  </Accordion>
</AccordionGroup>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Email domain is stuck in &#x22;Verifying&#x22;">
    Possible causes:

    * DNS records not fully propagated
    * `NS` delegation incorrect
    * `TXT` verification record missing
    * DNS configured on wrong domain level

    **What to do:**

    * Recheck the exact DNS records shown in **Cloud → Emails**
    * Confirm records were added to the correct root domain
    * Wait up to 48 hours for propagation
    * Retry verification
  </Accordion>

  <Accordion title="Domain status shows Offline">
    This means required DNS records were changed, removed, or expired after verification.

    **What to do:**

    * Review DNS records in **Cloud → Emails**
    * Restore missing `NS` or `TXT` records
    * Re-verify the domain
  </Accordion>

  <Accordion title="Domain status shows &#x22;Domain removed&#x22;">
    The domain was deleted while this project was still using it. Go to **Cloud → Emails → Manage domains**, connect a different verified domain to this project, or add and verify a new one.
  </Accordion>

  <Accordion title="Emails are not sending">
    Check:

    * Email domain is linked to your project
    * Domain status is **Verified**
    * Emails are enabled for the project
    * For authentication emails: Cloud Auth is enabled, and you are triggering a supported auth event type
    * The correct edge function is deployed
    * Emails are rate limited to **100 emails per hour per workspace** to protect deliverability and system stability. If you need a higher limit, contact [**Lovable Support**](https://lovable.dev/support).

    Use **Send test** on a template tab and check **Analytics and logs** for delivery failures or bounces.
  </Accordion>

  <Accordion title="High bounce rates in analytics">
    Common causes:

    * Invalid email addresses
    * Typos during signup
    * Repeated retries to invalid addresses

    Validate email input at signup and avoid retrying hard bounces.
  </Accordion>

  <Accordion title="Test emails are landing in spam">
    This is common for newly provisioned domains.

    Avoid sending large volumes of internal test emails. Allow organic user-triggered emails to build reputation over time.
  </Accordion>

  <Accordion title="My email template changes are not showing">
    If you edited template files but users are still receiving old versions:

    * Ensure the corresponding edge function was redeployed
    * Ask Lovable to redeploy your email templates

    Template changes only take effect after redeployment.
  </Accordion>

  <Accordion title="Use external tools to investigate deliverability issues">
    If emails are consistently landing in spam or being rejected, you can use the following tools for deeper diagnostics.

    These tools are optional and most useful for higher-volume senders.

    * [Google Postmaster Tools](https://postmaster.google.com/)\
      View sender reputation, spam rates, and authentication alignment for Gmail recipients.
    * [Yahoo Sender Hub](https://senders.yahooinc.com/)\
      Monitor complaint rates and sender reputation for Yahoo inboxes.
    * [Spamhaus blocklist lookup](https://check.spamhaus.org/)\
      Check whether your domain, IP address, or email URLs appear on major blocklists.
    * [Google Safe Browsing](https://transparencyreport.google.com/safe-browsing/search)\
      Test links used in your emails to ensure they are not flagged as unsafe.

    These tools help diagnose reputation or blocklist issues that may impact inbox placement.
  </Accordion>
</AccordionGroup>

## FAQ

<AccordionGroup>
  <Accordion title="What is the difference between authentication emails and app emails?">
    **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, such as sign up, reset a password, or accept an invite. Lovable provides six built-in templates that you can generate when needed.

    **App emails** are a type of transactional email sent in response to user activity or events in your app. They are triggered by your application logic when something happens, like a purchase or update. There are no built-in templates, you decide when to send them and what they contain. Ask Lovable to add the functionality, such as notifications, confirmations, receipts, and other updates, and it will generate the templates for you.
  </Accordion>

  <Accordion title="Do I need to set up different domains for authentication and app emails?">
    No. Both email types use the same custom domain and the same setup process.
  </Accordion>

  <Accordion title="Can I send marketing emails?">
    No. Only transactional emails are supported, such as signup confirmations, password resets, order confirmations, and shipping notifications.

    Marketing emails, such as newsletters, promotional emails, product announcements, and similar messages are not supported.
  </Accordion>

  <Accordion title="Do emails require Lovable Cloud?">
    Yes. Emails require Lovable Cloud and integrate with Cloud Auth to send authentication emails.
  </Accordion>

  <Accordion title="Do I need a custom web domain to use an email domain?">
    No. Your web custom domain controls where your app is hosted. A custom email domain controls which domain your emails are sent from.

    These are separate configurations because web hosting and email delivery use different DNS records and infrastructure.

    You can use a completely different root domain for email sending as long as you control its DNS. However, using a domain that aligns with your product brand is recommended for user trust and deliverability.

    Hosting your app on a custom domain does not automatically configure email sending.
  </Accordion>

  <Accordion title="Can I use a subdomain for email sending?">
    Yes. Lovable automatically creates a transactional subdomain such as `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.
  </Accordion>

  <Accordion title="Do I need an external email provider like SendGrid or Resend?">
    No. Lovable manages domain verification, DNS configuration, authentication records such as `SPF`, `DKIM`, and `DMARC`, and delivery infrastructure. You do not need to manage API keys or third-party email provider accounts.
  </Accordion>

  <Accordion title="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

    If authentication fails, emails may be marked as spam, rejected, or damage your domain reputation.

    Lovable automatically configures and maintains:

    * **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

    You do not need to manually configure these records. Lovable sets them up during domain verification and continuously monitors them. If authentication records are modified, removed, or expire, you are notified so they can be restored.
  </Accordion>

  <Accordion title="How many emails are included per month?">
    Each paid workspace includes **50,000 transactional emails per month** at no additional cost.

    Usage is calculated across the entire workspace.

    Additional emails are billed at **\$1 per 1,000 emails** and deducted from your [Cloud and AI balance](/integrations/cloud#usage-based-cloud-and-ai-pricing).
  </Accordion>

  <Accordion title="Can I use emails on the free plan?">
    No. Emails are available on **paid plans only**. Free plans use the default Lovable Cloud Auth sender.
  </Accordion>

  <Accordion title="How long does DNS verification take?">
    DNS changes typically propagate within a few hours, but can take up to 48 hours.

    You can check the domain status in **Cloud → Emails**. The status updates automatically once verification completes.
  </Accordion>

  <Accordion title="Why are my emails going to spam?">
    New email domains start with no sending reputation.

    If emails land in spam:

    • Confirm the domain status is **Verified**\
    • Ensure DNS records have not changed\
    • Avoid sudden spikes in sending volume\
    • Avoid spam-trigger formatting\
    • Check bounce rates in **Analytics and logs**

    Deliverability improves over time with consistent, legitimate user activity.
  </Accordion>

  <Accordion title="Can I customize the email templates?">
    Yes. You can customize:

    * Copy and tone
    * Brand colors
    * Layout and structure
    * Logos and images
    * Subject lines

    You can ask Lovable to update the templates or edit them directly in `supabase/functions/_shared/`.

    Required authentication variables and callback links must remain intact in auth emails, as well as the unsubscribe footer in app email templates.

    The outer email body background must remain white (`#ffffff`) to ensure consistent rendering across email clients. Inner components can use your brand colors.
  </Accordion>

  <Accordion title="What happens if I disable emails?">
    If emails are disabled for a project, authentication emails continue sending using the default Lovable Cloud Auth sender instead of your branded templates. App emails stop sending.
  </Accordion>

  <Accordion title="What happens if I delete an email domain?">
    Deleting an email domain is a **workspace-wide action**.

    All projects using that domain will immediately fall back to the default Lovable Cloud Auth sender and app emails will stop sending.
  </Accordion>
</AccordionGroup>
