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

# Email channel

> How a notification email goes out: Resend, each brand design, the template fields and their limits, the states and the suppressions for bounces and spam.

## What it is for

Email is the most used channel: almost every event declares it. It is for notifications the customer can read
later and keep, such as a signed contract, a redeemed coupon or a charge.

## How it reaches the recipient

**1. Horizon builds the email**

It takes the event's published template in the recipient's language, replaces the variables and wraps it in
the brand design (header, colours, footer and legal text).

**2. It leaves on the email lane**

The send waits on the `notification-email` lane, which keeps the pace Resend allows.

**3. Resend delivers it**

Resend sends it from an address on a verified domain and reports each step: sent, delivered, opened, clicked,
bounced or spam.

## What the recipient needs

An email address. Without one, the send is skipped with the reason **Unreachable**. If the address is on the
suppression list, it is suppressed (except security notifications).

## Template fields

| Field | Limit | What for |
| - | - | - |
| Subject | 150 characters, required | The first thing the customer sees |
| Preview text | 150 characters | The grey text many mail apps show next to the subject |
| Body | Restricted HTML, required | Paragraphs, headings, lists, links, bold, images, tables and the button block |
| Sender address and name | Address on a verified domain | By default, the brand's |
| Reply to | Address | Where replies arrive |
| Attachments | Per the event's policy | Files the business flow provides, never pasted in the template |
| Layout | Brand: `maihue`, `maihuego`, `maihue-lunch` or `bbrands` | The frame of the email, defined in code |

The texts (subject, preview and body) are translated per language; the rest is shared by all languages. The brand
design is not edited from the template, so nobody can break it by accident.

## States it reports

| State | Meaning |
| - | - |
| **Sent** | Resend accepted the email |
| **Delivered** | The recipient's server received it |
| **Opened** | It was opened (measured with an invisible image; some mail apps block it or load it by themselves) |
| **Clicked** | A link was clicked |
| **Bounced** | It did not arrive; a permanent bounce moves the address to suppressions |
| **Marked as spam** | The recipient marked it as spam; the address moves to suppressions |
| **Failed** | Resend could not send it; if the event has a fallback, that channel is tried |

## Rules

| Rule |
| - |
| Email never waits for quiet hours |
| Permanent bounces and spam marks add the address to suppressions automatically |
| An email whose content breaks the limits at send time is skipped with **Invalid content** |
| The body HTML is cleaned on save and on send: tags and attributes off the list are removed |
| The rendered email is kept 180 days; after that only its record remains |

## FAQ and support cases

> [accordion] The email says Delivered but the customer does not see it
>
> It reached their mail server: ask them to check the spam or promotions folder.

> [accordion] Can I change the logo or colours of an email?
>
> Each brand's design is in the code. Ask the technology team.

> [accordion] An email bounced by mistake and the address is suppressed
>
> Lift the suppression in [**Audience › Suppressions**](https://docs.bbrands.io/enterprise/notifications/audience/suppressions.md), with a reason.

## Technical detail

| Aspect | Detail |
| - | - |
| Adapter | `backend/horizon-api/lib/notification/channel/email/resend.adapter.ts` |
| Contract | `email.contract.ts` (`subject`, `preheader`, `body`, `from_email`, `from_sender`, `reply_to`, `attachments`, `layout`) |
| Brand design | `backend/horizon-api/lib/email/shared/` |
| Provider events | Signed Resend webhook (Svix) → `resend-webhook` topic |
| Lane | `notification-email` |

## Related and history

* [Channels overview](https://docs.bbrands.io/enterprise/notifications/channels/overview.md)

| Date | Change |
| - | - |
| 2026-11-11 | First version |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.