# Email themes

An **email theme** is your own HTML layout for the emails your invitees get. You write
the header and footer, and 42min puts the email's text between them: the same heading,
meeting details, buttons and Reschedule and Cancel links as the standard email, in the
invitee's language. Owners and Admins manage themes on the
[Admin Center → Email themes](/360/admin?tab=emailThemes) tab.

Two conditions apply. Themes go out only through your own mail server, so
[Custom Email](/help/integrations/custom-email) must be connected. And 42min reviews each
new theme and each change before any invitee sees it.

## Which emails use a theme

A theme frames the emails to invitees and guests that go out through your server:

- booking confirmations, reschedules and cancellations, recurring series included
- [workflow](/help/workflows/overview) emails to invitees, such as reminders and
  follow-ups
- booking request, payment failure and refund notices
- [Roundtable](/help/roundtables/overview) invites, reminders and updates

Emails to hosts and admins keep the standard 42min layout. So does any email 42min sends
from its own address, such as the fallback when your server refuses a message (see
[When your server fails](/help/integrations/custom-email#when-your-server-fails)). In
those cases the invitee gets the standard email, so nothing is lost.

## The Email themes tab

The tab lists each theme with its status, what uses it, and when it last changed. The row
actions are **Edit**, **Duplicate** and **Delete**. An organization can keep up to 20 email
themes.

<Screenshot
  src="/help/screenshots/team-and-admin/email-themes.png"
  alt="The Email themes tab of the Admin Center in the 42min dashboard, with a New email theme button and three themes: Acme Sales marked In use and Default, Webinars marked In use with Change waiting for review, and Partner events marked Waiting for review, each with its Used by line, update date, and edit, duplicate and delete buttons"
  caption="Admin Center → Email themes: the status chips beside each name, what uses the theme, and the Edit, Duplicate and Delete buttons."
/>

| Status | What it means |
|---|---|
| **In use** | 42min approved this version, and emails use it. |
| **Default** | The organization's default email theme. |
| **Waiting for review** | A new theme 42min hasn't reviewed yet. Emails use the standard layout until it's approved. |
| **Change waiting for review** | You saved a change. Emails keep using the approved version until the change is approved. |
| **Not approved** / **Change not approved** | 42min sent it back. The editor shows the reason. |
| **Image changed** / **Image missing** | An image the theme uses was replaced or deleted in Media (see [Images](#images)). |

You're told the outcome of a review by email, and it appears in [Messages](/360/messages)
as **Email theme review**.

## Creating a theme

1. Connect [Custom Email](/360/integrations/custom-email) if you haven't. Until you do,
   **New email theme** stays disabled.
2. On [Email themes](/360/admin?tab=emailThemes), click **New email theme**. The
   editor opens on a starter layout: a header table, the email content slot and a footer
   table.
3. Give the theme a **Name**, and tick **Default email theme for the organization** if it
   should apply wherever nothing else is chosen.
4. Edit the **HTML**. The **Preview** shows a sample confirmation in your language, and
   updates as you type.
5. Click **Save and send for review**.

<Screenshot
  src="/help/screenshots/team-and-admin/email-theme-editor.png"
  alt="The 42min email theme editor: the Name field, the Default email theme checkbox, Save and send for review and Cancel buttons, the HTML of a layout with a blue Acme Sales header and the {{email_content}} slot, an Insert menu, an Open Media link and a 1 kB of 100 kB size counter; on the right, the preview shows the blue header, a sample Booking Confirmed email inside a dashed outline, and the footer"
  caption="The editor: your HTML on the left, the live preview on the right. The dashed outline marks where 42min puts the email's text."
/>

The preview switches between **Desktop** and **Phone** widths. The dashed outline appears
in the preview only, never in a sent email.

## Writing the layout

A theme is one complete HTML document. The **Insert** menu under the HTML field adds the
two things 42min fills in for you: **Email content** (the slot) and an image from Media.

- **The slot.** `{{email_content}}` must appear exactly once, directly inside `<body>`,
  between your header and footer. It can't sit inside a table, a `div` or a link. No
  other `{{…}}` placeholder exists: write your company name and address into the layout
  itself.
- **Our text keeps its look.** 42min places the email's text in its own white box, up to
  600 pixels wide, and your styles don't reach inside it. On `<body>` you can set the
  background color, and 42min sets the margins.
- **Size.** The HTML can be up to 100 kB. The counter under the field shows how much you've
  used.
- **CSS.** Put it in a `<style>` element inside `<head>`, or in `style` attributes. Rules
  use class selectors only (`.header`, `.footer`), with no `@media` or other at-rules and
  no `!important`. Fonts are system fonts such as Arial, Helvetica or Georgia, and a
  background is a solid color.
- **Links** start with `https://`, `mailto:` or `tel:`. A link to 42min can point only to
  the home page or to a public booking page, with no `?` or `#` part.
- **Nothing hidden.** Properties that hide or move content, such as `display: none`,
  `opacity` or `position`, aren't allowed, so the layout invitees see is the one 42min
  reviewed.

Scripts, forms, iframes, SVG and other elements outside the email-safe list refuse the
save, and the editor names the line under **Fix these before saving**. A few things are
dropped instead of refused, such as comments and `<meta>` tags. The editor lists them
under **Removed when saved**.

### Images

Images come from your [media library](/help/team-and-admin/branding-and-themes#media-library),
as `<img src="media:logo.png">`. Pick **Insert image from Media** to add one, or
**Open Media** to upload it first. Only PNG and JPEG images work in an email theme, and
background images aren't allowed: put the image in an `<img>` and give its cell a solid
background color.

An email shows the Media file itself, so a change there affects the theme:

- **Replacing an image** (deleting the file and uploading another under the same name)
  sends the theme back to review. Until it's approved, emails use the standard layout.
  Uploading the approved image again under its old name brings the approved version back.
- **Deleting an image** marks the theme **Image missing**, and emails use the standard
  layout. The Media tab asks before deleting a file an email theme uses.

Emails already delivered load their images when they're opened, so they show the file
Media holds at that moment.

## Choosing a theme for event types and workflows

Once the organization has an email theme, two pickers appear:

- **Event types.** In the event type editor's **Branding** group, under **Booking page
  theme**, **Email theme** offers *Organization default*, each theme, or *Standard 42min
  layout*. A new event type starts on the organization default.
- **Workflows.** The workflow editor's **Email theme** offers *Same as each event type*,
  each theme, or *Standard 42min layout*.

A workflow email uses the workflow's choice first, then the event type's, then the
organization default. A theme that isn't approved yet doesn't pass the email on to the
next choice: the email uses the standard layout until approval. On a managed event type or
workflow, the template sets the theme and members can't change it (see
[Templates](/help/team-and-admin/templates)).

## Duplicating and deleting

- **Duplicate** copies a theme's latest HTML into a new theme, which goes to review like
  any new one. An exact copy of an approved theme, with no change waiting and its images
  unchanged in Media, starts approved.
- **Delete** asks first and says what follows. Event types that picked the theme go back
  to the organization default, and workflows that picked it follow their event types. If
  it was the default, event types without their own choice use the standard layout.

## When Custom Email is off

If you disconnect or pause [Custom Email](/help/integrations/custom-email), your themes
are kept but unused, and invitees get the standard layout. You can't create or edit a
theme's HTML then, though renaming, changing the default and deleting still work.
Reconnect and approved themes are used again with no new review.

If the connection breaks, the tab says so, and emails use the standard layout until it's
fixed.

## Common pitfalls

- **Saved, but emails still look standard.** The theme is waiting for review, an image
  changed in Media, or the email went out from 42min's own address. Check the status on the
  Email themes tab and the route in [Sent messages](/help/team-and-admin/sent-messages).
- **"Add the email content slot, once, directly inside the body."** Move
  `{{email_content}}` out of any table or `div`, so it sits between your header and footer
  tables.
- **"only class selectors such as .header are allowed".** Rewrite element and id
  selectors (`body`, `td`, `#logo`) as classes on those elements.
- **"… is not a system font."** Web fonts aren't sent in emails. Use a system font stack
  such as `Arial, Helvetica, sans-serif`.
- **An image refused.** Convert GIF and WebP files to PNG or JPEG and upload them to Media.
