In this guide12 sections
Email in a Lovable application is not one feature. Signup confirmation and password reset messages belong to authentication. Receipts, booking updates, invitations, and alerts are transactional application messages. Newsletters and promotional campaigns belong to a marketing system. Treating all three as the same workflow is how teams create broken account recovery, poor deliverability, and accidental compliance problems.
Lovable now provides built-in custom-domain email for eligible Lovable Cloud projects. It can handle authentication templates and application-triggered transactional messages while Lovable manages much of the domain verification and delivery infrastructure. Projects connected to an external Supabase backend cannot use that built-in route, and marketing email still requires a suitable external provider.
This guide explains the current options, the DNS decisions that can affect your entire domain, and the application logic required for reliable sending. It is written for production use, not just the moment when a test email first arrives.
Choose the email path before changing DNS
Start by classifying the messages the application must send. Authentication email proves identity or restores account access. Transactional email confirms a user action or reports an account event. Marketing email promotes a product, campaign, or offer. The sender, consent rules, template controls, unsubscribe behavior, and reputation risk differ across these categories.
For a paid Lovable workspace using Lovable Cloud, built-in custom email is the simplest path for authentication and standard transactional messages. Lovable documents domain verification, DNS assistance, sending, authentication templates, application email generation, and delivery logs in one workflow. An owner or admin with access to the domain's DNS is required.
Use an external provider when the project uses its own Supabase connection, needs marketing campaigns, already has established email infrastructure, or requires provider-specific features and scale. Lovable documents connectors for providers including Resend and Mailgun. The provider account, billing, DNS, limits, suppression rules, and compliance then remain your responsibility.
| Requirement | Recommended path | Reason |
|---|---|---|
| Auth and routine transactional email on Lovable Cloud | Lovable built-in email | Fewest moving parts and integrated logs |
| Project connected to external Supabase | External email provider | Built-in custom email is not available for this setup |
| Marketing newsletter or campaign | Marketing-capable provider | Lovable built-in email is transactional only |
| Existing Mailgun operation | Lovable Mailgun connector | Retains the provider and its operational controls |
| Developer-friendly transactional API | Resend or another supported provider | Explicit API, domain and template workflow |
Confirm current eligibility and provider features before changing a production sender.
Note
Read Lovable's current custom email documentation (opens in a new tab) before setup. Product eligibility, limits and DNS workflows can change.
Prepare the project, domain and ownership first
A reliable email setup depends on administrative access that should not live with one temporary contractor. Confirm who owns the Lovable workspace, the domain registrar, DNS zone, email provider account, and any Supabase project. Record these accounts in the team's access register and use role-based access where available.
For Lovable built-in email, the current prerequisites include a paid workspace, a project using Lovable Cloud, an owned domain, DNS access, and workspace owner or admin permission. A domain connected only for web hosting is not automatically configured for outbound email. Email authentication uses additional DNS records and a sending subdomain.
Choose the production domain carefully. One active email domain can be attached to a project at a time under the current Lovable workflow, while verified domains are managed at workspace level and can be reused. Removing a shared domain can affect every project that uses it, so check workspace dependencies before deletion or replacement.
- Confirm the app's backend mode: Lovable Cloud or an external Supabase project.
- List every message type and classify it as authentication, transactional, or marketing.
- Choose the sender name, reply-to mailbox, and monitored support address.
- Confirm ownership of the domain, DNS zone, provider account, and Lovable workspace.
- Create test users and a non-production recipient list before sending live traffic.
Use a dedicated sending subdomain
A dedicated subdomain separates transactional reputation from the root domain used by the website and employee mail. A pattern such as notify.example.com or updates.example.com is easier to isolate, diagnose, and replace than sending every application message directly from the organizational root. Lovable uses notify as its default transactional subdomain and can still display a root-domain From address in supported configurations.
The visible From address, technical return path, and authenticated sending domain are related but not identical. A message can look branded while delivery systems evaluate DKIM signatures, SPF authorization, DMARC alignment, bounce history, complaint rates, and sending behavior behind the scenes. The setup is complete only when those signals align and the reply path reaches a monitored mailbox.
Do not create a different sending domain for every minor email type. Fragmentation slows reputation building and increases DNS and monitoring work. Separate streams when there is a meaningful risk boundary, such as high-volume marketing versus essential account and payment messages.
| DNS control | Purpose | Operational check |
|---|---|---|
| Domain verification | Proves control of the sending domain | Record resolves publicly exactly as supplied |
| SPF | Authorizes sending infrastructure | Only one SPF policy exists for each hostname |
| DKIM | Cryptographically signs mail | Selector resolves and messages show a valid signature |
| DMARC | Defines alignment and reporting policy | Reports are monitored before policy is tightened |
| Subdomain delegation | Lets the provider manage a sending subdomain | Root nameservers remain untouched |
Configure DNS without taking the domain offline
Lovable offers an automated Entri workflow for supported DNS providers and a manual path when automation is unavailable. Follow the exact records shown inside the project. DNS host fields vary by provider: some expect only the subdomain label, while others expect the full hostname. Copying a record format from another registrar can create a duplicated domain name and prevent verification.
The highest-risk step is nameserver handling. Lovable's manual setup can ask for NS records that delegate only the transactional subdomain. Add those NS records inside the existing DNS zone. Do not replace the root nameservers at the registrar. Replacing the root delegation can disconnect the website, employee email, verification records, and every other service on the domain.
Allow time for propagation and do not repeatedly delete and recreate correct records. Lovable notes that verification can take up to 48 hours. Use a public DNS lookup to confirm TXT, DKIM, and subdomain delegation from outside your own network. If the domain does not verify, compare each hostname, value, record type, and conflicting record before changing anything else.
- 1
Open the project email settings
Confirm that the project is eligible and that you are working in the correct Lovable workspace.
- 2
Select the sending domain
Use a stable domain owned by the business and choose a dedicated transactional subdomain.
- 3
Use automatic setup when supported
Review every proposed DNS change before approving it and save a copy of the previous zone.
- 4
Add manual records exactly
Enter each TXT, DKIM or NS record using the host format required by the DNS provider.
- 5
Preserve root nameservers
Delegate only the requested subdomain. Never replace registrar nameservers for this task.
- 6
Verify from a public resolver
Check that every record resolves externally, then wait for Lovable to confirm the domain.
Watch out
An NS record for a sending subdomain belongs inside the existing DNS zone. Do not change the domain's registrar-level nameservers unless you are intentionally moving the entire DNS service.
Configure authentication email as account infrastructure
Authentication messages are part of the security boundary. Lovable's current built-in workflow supports templates for signup confirmation, password reset, magic links, invitations, email-address changes, and reauthentication. Each template must state what happened, identify the application, present one clear action, and tell the recipient what to do if they did not request it.
A polished template cannot repair a broken redirect. Test every link from a fresh browser session, an expired link, a previously used link, and a mobile email client. Confirm that the destination belongs to the correct environment and domain. A production reset email that points to a preview URL is both a conversion failure and a security concern.
Keep the message focused. Do not place promotional content next to password or verification actions. Avoid exposing sensitive account details in subject lines or preview text. The application should provide a generic response when someone requests a reset for an unknown address so the flow does not reveal who has an account.
- Use a recognizable sender name and a monitored reply-to address.
- State the requested action and the expiration behavior without exposing private data.
- Keep the primary link on the canonical production domain.
- Test unknown-user, expired-link, reused-link, and changed-email scenarios.
- Rate-limit repeated requests and log security-relevant failures without logging tokens.
Tip
Build the account flow with our Lovable authentication guide, then use this article to harden its email delivery and domain setup.
Design transactional email around application events
Transactional email should be caused by a durable business event, not by a button click alone. A payment receipt should follow a verified payment event. A booking confirmation should follow a committed booking record. An invitation should reference an invitation object with an owner, recipient, role, expiration, and redemption state. This prevents the message from promising something the database never completed.
Define the event payload before asking Lovable to generate the message. Include a stable event ID, recipient, template type, locale, relevant record IDs, and the minimum display data required. Store a send attempt with status and provider response. If the function retries, use the event ID as an idempotency key so one order does not produce three receipts.
Lovable can generate application email flows through conversation, but the instruction should specify the trigger, recipient authorization, data source, template states, failure handling, and logging. Keep provider keys in server-side secrets. Never expose a private email API key in browser code or a public environment variable.
Create a server-side transactional email flow for booking confirmations. Trigger only after the booking record is committed. Read the recipient from the authenticated booking relationship, not from a client-supplied address. Use the booking ID plus event type as an idempotency key. Store pending, sent and failed status with the provider message ID. Retry temporary failures with a limit, never expose provider credentials to the browser, and show the user an honest in-app status if delivery fails.Note
For external services and secure server-side calls, use the Lovable API integration guide.
When to use Resend, Mailgun or another provider
An external provider is not automatically more professional. It adds another account, bill, API key, DNS configuration, suppression list, webhook surface, and incident path. Use it because the application needs a capability that the built-in path does not provide, or because an existing email operation should remain centralized.
Resend is a common developer-focused option for transactional sending and can support broader email workflows depending on the chosen product and plan. Its domain setup uses SPF and DKIM, and a dedicated subdomain remains sensible. Mailgun is appropriate for teams already operating Mailgun or needing its scale and controls. Lovable's Mailgun documentation notes that provider billing is separate and that some operational features, including direct webhook handling through the connector, require additional architecture.
Projects using an external Supabase backend need an external provider for branded application mail because Lovable's built-in custom email is limited to Lovable Cloud projects. Supabase authentication email has its own SMTP and template configuration. Keep authentication ownership clear: changing the app's transactional provider does not automatically change the provider used by the auth system.
| Decision | Built-in Lovable email | External provider |
|---|---|---|
| Initial setup | Integrated for eligible Cloud projects | Provider account, API and DNS setup |
| Authentication templates | Managed in Lovable workflow | May require separate auth or SMTP configuration |
| Transactional app email | Supported | Supported through API or connector |
| Marketing campaigns | Not supported | Use a marketing-capable service |
| Billing and limits | Lovable workspace terms | Provider plus application usage terms |
| Operational control | Simpler integrated surface | More provider-specific controls and responsibilities |
Note
Lovable recommends built-in email for standard transactional use and documents Mailgun integration (opens in a new tab) for teams that need that provider.
Protect deliverability from the first send
A verified domain is eligible to send; it is not guaranteed to reach the inbox. New sending domains have little reputation. Start with real low-volume traffic, send only messages recipients expect, and increase volume gradually. A sudden campaign from a new transactional subdomain can cause deferrals, spam placement, or provider restrictions.
Suppress hard bounces and complaints immediately. Do not repeatedly send to addresses that fail. Validate obvious address mistakes at entry, but do not block legitimate uncommon domains with an overaggressive pattern. For high-value flows, let the user correct the address and resend with a reasonable rate limit.
Use DMARC reporting to see which systems send on behalf of the domain. Begin with a monitoring policy while legitimate sources are inventoried, then tighten enforcement deliberately. Keep marketing lists away from the critical stream used for password resets, security alerts, receipts, and account invitations.
- Send only expected messages to users with a valid relationship to the application.
- Warm a new domain with steady legitimate volume instead of a sudden bulk send.
- Monitor delivery, bounce, complaint, deferral, and provider rejection data.
- Suppress permanent failures and investigate repeated temporary failures.
- Separate promotional campaigns from essential account and transaction traffic.
- Use a real reply path and process support responses promptly.
Test the full lifecycle, not one successful inbox
Testing with one Gmail address proves almost nothing. Create a matrix covering the major mailbox providers used by the audience, mobile and desktop clients, light and dark modes, long names, missing optional data, expired actions, duplicates, and provider downtime. Inspect the text alternative as well as the HTML message.
Verify authorization at the sending boundary. A user should not be able to change a client-side recipient field and send private information to another address. The server should derive recipients from trusted application records and enforce the current user's right to trigger the message. Administrative bulk actions need tighter limits and audit history.
After a domain or template change, redeploy when required and repeat the critical flow. Lovable's delivery logs can show sent, delivered, and bounced outcomes for built-in email. External providers expose their own event model. Connect failures to application monitoring so the product team sees them before users report missing account access or receipts.
| Test | Expected evidence | Failure to prevent |
|---|---|---|
| Signup confirmation | One valid link reaches canonical app | Preview-domain redirect or duplicate email |
| Password reset | Unknown users receive generic UI response | Account enumeration |
| Receipt retry | Same event sends at most once | Duplicate customer messages |
| Unauthorized recipient change | Server rejects manipulated request | Private data disclosure |
| Provider outage | Failure recorded and safely retried | Silent message loss |
| Hard bounce | Address suppressed and user can correct it | Repeated reputation damage |
Production launch checklist
Move email into production only after domain authentication, application authorization, failure handling, and ownership are documented. The sender configuration should survive the original builder leaving the project. Provider accounts and DNS must belong to the business, not a personal login that cannot be recovered.
Treat launch as the start of operations. Review delivery and bounce trends, keep templates synchronized with product behavior, and test account recovery after authentication or domain changes. Add email incidents to the same release and rollback process used for database and deployment changes.
- 1
Confirm domain health
Verify SPF, DKIM, DMARC and any subdomain delegation from a public resolver.
- 2
Complete the message inventory
Record each trigger, recipient rule, template owner, provider and retention requirement.
- 3
Prove server-side authorization
Manipulate requests and verify that recipients and private template data cannot be overridden.
- 4
Test recovery paths
Run signup, reset, invite and email-change flows from fresh and expired sessions.
- 5
Test transaction integrity
Verify durable triggers, idempotency, retries, suppression and honest in-app status.
- 6
Assign monitoring
Name an owner for delivery logs, bounces, complaints, provider alerts and DNS changes.
- 7
Document rollback
Keep previous DNS records and know how auth and app email behave if the custom domain is removed.
Tip
Finish with the Lovable production-readiness checklist and custom domain guide before moving real users onto the app.
Key takeaways
- Separate authentication, transactional, and marketing email before choosing a provider.
- Lovable built-in custom email is for eligible paid Lovable Cloud projects and does not support marketing campaigns.
- Projects connected to external Supabase need an external provider for branded application email.
- Delegate only the requested sending subdomain in DNS; never replace root nameservers for email setup.
- Trigger transactional messages from durable server-side events and use idempotency to prevent duplicates.
- Domain verification is only the start; warmup, suppression, monitoring and authorization determine production reliability.
Frequently asked questions
Yes. Eligible paid projects using Lovable Cloud can configure built-in custom-domain email for authentication and transactional messages. You need an owned domain, DNS access, and workspace owner or admin permission. Verify current eligibility in Lovable's email settings.


