# Branded email & delivery

> Send verification links, booking confirmations, and payment receipts from your own domain — backed by SPF, DKIM, DMARC, and delivery logs.

- Canonical: https://exaspark.ai/docs/branded-email/

## Transactional vs marketing email

ExaSpark includes managed transactional email so your app can reliably deliver time-sensitive messages triggered by real user actions — account verification links, password resets, magic sign-in codes, booking confirmations, payment receipts, and team invitations.

Keeping **transactional email** separate from bulk marketing newsletters protects your inbox placement. Mailbox providers such as Gmail, Outlook, and iCloud continuously score sender reputation; high-intent receipts and sign-in links earn strong engagement and stay out of Spam when they are not mixed with promotional blasts.

## Monthly allowances by plan

Every ExaSpark plan includes a monthly transactional email allowance. Paid plans unlock custom application notifications, your own sending domains, and longer delivery log retention.

| Plan | Monthly allowance | Email types allowed | Custom sending domains | Delivery log retention | At monthly cap |
| --- | --- | --- | --- | --- | --- |
| **Free ($0)** | **100 / month** | Authentication only (verification, resets, magic links) | Default ExaSpark sender (`0` custom) | **7 days** | Pauses until next cycle |
| **Starter ($4.99/mo or $3.99/mo annual)** | **1,000 / month** | Auth + custom app emails (receipts, bookings, alerts) | **1** custom domain | **7 days** | Overage allowed |
| **Pro ($25/mo or $20/mo annual)** | **10,000 / month** | Auth + full custom transactional notifications | Up to **3** custom domains | **30 days** | Overage allowed |

> **Note:** **Building on Free?** Sign-up verification, password resets, and magic links work immediately on Free up to 100 emails/month. Upgrade to **Starter** or **Pro** when you are ready to send custom booking confirmations, receipts, or branded messages from your own domain.

## Configuring a custom sending domain

On **Starter** and **Pro**, you can replace the default sender address with your own brand identity (for example, `Studio North <bookings@mail.studionorth.co>`). Customers recognize your domain instantly, trust the link, and are far less likely to mark receipts as spam.

Using a dedicated subdomain such as `mail.yourdomain.com` or `notify.yourdomain.com` is an industry best practice. It isolates automated app mail reputation from your team's everyday corporate inbox (`yourdomain.com`) while keeping your primary domain visibly in the **From** address.

1. **Open Email settings in Cloud** — Go to **Cloud → Email** inside your project and click **Add sending domain**.
2. **Enter your sending subdomain or domain** — Use a dedicated subdomain like `mail.yourdomain.com` (recommended) or your root domain if you do not run complex corporate mail rules there.
3. **Copy the generated DNS records** — ExaSpark displays exact **SPF**, **DKIM**, and **DMARC** records tailored to your domain.
4. **Add records at your DNS provider** — Paste each record into Cloudflare, Namecheap, GoDaddy, or Route 53. If using Cloudflare, set email `CNAME` records to **DNS only (grey cloud)**, never Proxied.
5. **Verify and send a live test** — Click **Verify** once DNS propagates (typically 5–30 minutes, occasionally up to 24 hours), then send test messages to both a Gmail and an Outlook inbox to inspect the authenticated headers.

## Understanding SPF, DKIM, and DMARC

Modern mailbox providers reject or junk unauthenticated mail by default. Three lightweight DNS records work together to prove that ExaSpark is legitimately authorized to send mail for your brand.

### SPF (Sender Policy Framework)

**SPF** is a `TXT` record listing which mail servers are allowed to send email on behalf of your hostname. When Gmail receives a booking confirmation claiming to come from `mail.studionorth.co`, it checks your SPF record to confirm the sending server's IP is authorized.

One strict DNS rule trips up many teams: **never publish two separate `v=spf1` TXT records on the same hostname.** Publishing two SPF records invalidates both immediately.

If your hostname already has an SPF record (for Google Workspace or Microsoft 365), merge the new `include:` mechanism inside that existing record — or use a clean subdomain like `mail.yourdomain.com` where only one SPF record lives.

### DKIM (DomainKeys Identified Mail)

**DKIM** adds a tamper-evident cryptographic signature to every outgoing email header. You publish the matching public keys in DNS (typically as `CNAME` or `TXT` records). Receiving servers verify the signature to guarantee nobody altered the subject, sender, or links in transit.

### DMARC (Domain-based Message Authentication, Reporting & Conformance)

**DMARC** sits at `_dmarc.yourdomain.com` and tells inbox providers two things: what to do if an email fails both SPF and DKIM alignment, and where to email daily failure reports (`rua=`). Start with `p=none` while verifying all legitimate senders, then tighten to `p=quarantine` or `p=reject` once logs look clean.

```dns
; Example DNS records for a dedicated sending subdomain (mail.studionorth.co)
; Always copy the exact hostnames and targets shown in Cloud -> Email.

; 1. SPF record authorizing the managed mail sender on your sending subdomain
mail.studionorth.co.               TXT    "v=spf1 include:_spf.mail-provider.example ~all"

; 2. DKIM cryptographic selector records (set to DNS-only / unproxied on Cloudflare)
s1._domainkey.mail.studionorth.co. CNAME  s1.domainkey.mail-provider.example.
s2._domainkey.mail.studionorth.co. CNAME  s2.domainkey.mail-provider.example.

; 3. DMARC policy on your organizational domain (start with p=none to monitor)
_dmarc.studionorth.co.             TXT    "v=DMARC1; p=none; rua=mailto:dmarc@studionorth.co; pct=100"
```

### Cloudflare proxy warning

If your domain uses Cloudflare DNS, make sure every DKIM `CNAME` record is switched to **DNS only (grey cloud)**. Turning on the orange proxy cloud rewrites the record into Cloudflare HTTP proxy IPs, breaking cryptographic DKIM verification immediately.

## Triggering branded emails in your app

Describe the exact trigger event, recipient, key details, and fallback behavior in plain English so ExaSpark builds both the template and the server sending hook cleanly.

> **Example prompt (App):** When a Stripe booking deposit webhook confirms a booking, send a branded confirmation email from `bookings@mail.studionorth.co` with `Reply-To: hello@studionorth.co`. Include both clean HTML and a plain-text fallback showing the service name, local date and time, venue address, deposit paid, remaining balance, and a one-click manage/reschedule link.

A few copy and header habits improve inbox delivery across every mailbox provider:

- **Always set a real `Reply-To` address.** Avoid dead-end `noreply@` inboxes when customers reply with scheduling questions — replying signals trust to inbox filters.
- **Pair HTML with a plain-text body.** Spam filters penalize HTML-only emails with giant images and almost no text.
- **Avoid public URL shorteners.** Links using third-party shorteners frequently trigger spam flags; link directly to your own verified custom domain (`https://studionorth.co/bookings/...`).
- **Keep transactional emails focused.** Deliver the receipt, booking detail, or verification button cleanly at the top rather than burying it under promotional banners.

## Reading delivery logs and diagnosing bounces

Open **Cloud → Email → Logs** to trace every outgoing message across the last **7 days** (Free and Starter) or **30 days** (Pro). Each row displays recipient, subject, timestamp, and real-time delivery status.

- **Queued / Sent** — Handed off to the outbound mail server and awaiting recipient server acknowledgment.
- **Delivered** — Accepted by the recipient's mailbox server (note: Gmail may still place an accepted message into Spam if authentication or content signals look suspicious).
- **Soft bounce** — Temporary refusal (mailbox full, rate limit, or server momentarily busy); delivery retries automatically.
- **Hard bounce** — Permanent rejection (misspelled address, closed mailbox, or non-existent domain). Stop retrying hard-bounced addresses automatically to protect your sender score.
- **Complained** — Recipient clicked "Report spam." Investigate copy and consent immediately.

| Symptom | Most common root cause | Reliable fix |
| --- | --- | --- |
| **Domain stuck in Pending verification** | Typo in DNS host (duplicating `.yourdomain.com` twice) or Cloudflare orange proxy enabled on DKIM CNAME | Check your DNS host field — many panels auto-append the root domain — and set CNAMEs to **DNS only** |
| **Emails land in Gmail Spam** | Missing DMARC record, unverified custom domain, or spammy link shorteners | Verify SPF + DKIM + DMARC (`p=none` minimum), remove link shorteners, and test via Gmail "Show original" |
| **Hard bounce `550 User Unknown`** | Customer typed a typo in their email (`gmial.com`) at checkout or sign-up | Require email verification on sign-up and let members fix typos on their account screen |
| **SPF validation fails with PermError** | Two separate `v=spf1` TXT records exist on the same hostname | Merge all authorized senders into one `v=spf1` record or isolate app mail on `mail.yourdomain.com` |
| **Booking confirmation didn't send on Free** | Free plan (`100/mo`) supports authentication emails only | Upgrade to **Starter** (`1,000/mo`) or **Pro** (`10,000/mo`) for custom transactional notifications |

## Next steps

- [Custom domains & DNS](https://exaspark.ai/docs/custom-domains-and-dns/) — Connect your main app domain with automatic SSL alongside email records.
- [Authentication & roles](https://exaspark.ai/docs/authentication-and-roles/) — Pair verification emails and password resets with 19+ sign-in providers.
- [Plans & credits](https://exaspark.ai/docs/plans-and-credits/) — Compare Free, Starter, and Pro allowances across email, domains, and credits.

## From the blog

- [How sign-in works](https://exaspark.ai/blog/how-sign-in-works/) — See how verification links, password resets, and magic links protect accounts.
- [What is web hosting?](https://exaspark.ai/blog/what-is-web-hosting/) — Plain-English refresher on domains, DNS records, and live app delivery.
- [From a spark to a running business](https://exaspark.ai/blog/from-spark-to-running-business/) — Connect your domain, branded email, and Stripe checkout under one roof.
