# Emails

In **Customization > Emails** you customize the emails players receive: drag blocks,
write in the languages you want and publish when it is ready.

![The store's email list, with the status of each one](shots/appearance-emails.webp)

## The store's emails

| Email | When it goes out | Can it be turned off? |
| --- | --- | --- |
| Welcome | When the player creates an account in the store | Yes |
| Password recovery | When the player asks to reset the password (it must include the reset link) | No |
| Payment approved | When the order payment is confirmed | No |
| Order delivered | When the order items are delivered on the server | Yes |
| Order expired | When an order stays unpaid until the deadline | Yes |
| Cart discount | When you offer a discount for an abandoned cart | Yes |

Every email starts on. Until you publish your own, it goes out with the predefined
template. Turned off with the switch in the list, it is not sent. Password recovery and
payment approved are required: the switch is locked and they always go out.

In a digital product store, the templates talk about **My purchases** instead of the
server, and Order delivered becomes **Order released**.

## Edit an email

![The email editor: blocks on the left, the email in the middle and the options on the right](shots/appearance-email-editor.webp)

1. In the list, click the email.
2. Fill in the **Subject** and the **Preview text**, which shows next to the subject in
   the inbox. The **Variable** button inserts data like the player's nick.
3. Drag blocks to the email, or click to add: **Heading**, **Text**, **Button**, **Image**,
   **Divider**, **Spacer**, **Social links**, **Footer** and **Columns**.
4. Click a block to edit it. The **Style** tab changes the colors and the look.
5. Use **Preview** to see how it looks, and **Send me a test** to get a real one.
6. Click **Publish**. The published version becomes the one that is sent.

```text Subject with a variable
Welcome, {{player.nick}}!
```

> [!WARNING]
> A block with a red outline has something to fix. Fix it before publishing.

> [!TIP]
> **Save draft** keeps your work without changing what players receive. In **Published
> versions**, **Restore** brings an older version to the draft; it only applies after
> you publish again.

## Languages

At the top of the editor, the tabs show the email's languages. Each player gets the email
in their language when it exists; otherwise, in the default language. Every email needs
the default language to be published.

## Sending settings

In **Sending settings**, which apply to every custom email in the store:

- **Languages** and **Default language**;
- **Sender name**, shown in the inbox (empty uses the store name);
- **Reply to**: the address that gets players' replies (optional).
