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

# Email Templates

> Edit the subject and message of the welcome, password reset, magic link and OTP emails Auth Plugin sends, with a visual editor, variables, a live preview and reset to default.

Change what your visitors read in the emails Auth Plugin sends: **Settings > Email** tab. You write the subject and the message. Your logo, colors and footer are added automatically from the [Branding](https://authplugin.com/docs/settings/branding.md) settings, so every email keeps a consistent look.

> [!NOTE]
>
> Only the workspace owner can edit emails.

## Edit an email

**1. Open the email**

Open Auth Plugin > **Settings** > **Email** and pick the email you want to change. Emails you have changed show **Customized**. The others show **Default**.

**2. Write the subject and message**

Change the **Subject**, then write your message in the editor. Use the toolbar above the editor for bold, italic, underline, headings, lists and links. Press Ctrl+Z (Cmd+Z on a Mac) to undo.

**3. Add variables**

Open the **Add a variable** list and pick a variable such as **\[User Name]**. It is added where your cursor is and is replaced with the real value when the email is sent. Click inside the subject first to add a variable to the subject.

**4. Check the preview**

Click **Preview** to open the email with example values and your branding. Close it to keep editing.

**5. Save**

Click **Save email**. The next email your site sends uses your message. Emails that were already sent are not changed.

## Emails you can edit

| Email | Sent when | Must contain |
| - | - | - |
| **Welcome** | Someone signs up | Nothing special |
| **Password Reset** | Someone asks to reset their password | `[Reset URL]` |
| **Magic Link** | Someone signs in without a password | `[Magic Link]` |
| **OTP Code** | Someone needs a one-time code | `[Verification Code]` |

An email must contain its required variable, or the person could not finish what they asked for. The plugin tells you if it is missing when you save.

## Variables

| Variable | Replaced with | Available in |
| - | - | - |
| `[User Name]` | The person's name (their email address if they have no name) | All emails |
| `[Your Company]` | Your app name from Branding | All emails |
| `[support mail]` | Your support email from Branding | All emails |
| `[Web Site]` | Your website address | All emails |
| `[Year]` | The current year | All emails |
| `[Verification Code]` | The one-time code | OTP Code |
| `[Reset URL]` | The link to choose a new password | Password Reset |
| `[Magic Link]` | The one-click sign-in link | Magic Link |
| `[Login Link]` | The link to your sign-in page | Welcome |
| `[Expiry]` | How long the code or link is valid, for example "15 minutes" | OTP Code, Password Reset, Magic Link |

A variable that is not on this list is refused when you save, so a typo such as `[User name]` is caught for you. Variables only work in the exact spelling shown.

## Links and buttons

* **Link**: select some text, click the link button in the toolbar and enter a web address (`https://...`), an email address (`mailto:...`) or one of the link variables such as `[Reset URL]`.
* **Button**: in the same link box, choose **Button** in the list instead of **Normal link**. In the email the link is shown as a button in your brand color, using the **Primary Color** and **Button Text** color from Branding.

## What is added for you

The logo, the colors, the support line and the copyright footer come from your [Branding](https://authplugin.com/docs/settings/branding.md) settings. You do not write them in the message, and you cannot remove them.

## Reset to default

Click **Reset to default** on an email you changed to remove your message. The built-in email is sent again. This only affects that one email.

## What is kept and what is removed

Messages are kept simple so they display the same in every email app. You can use text, three heading sizes, bold, italic, underline, lists, links and buttons. Everything else is removed when you save, including scripts, images, forms, embedded pages and custom styling. Links must start with `https://`, `http://` or `mailto:`, or be a variable.

## Replies

When a visitor replies to one of these emails, the reply goes to the **Support Email** from your Branding settings. If you have not set one, replies go to the Auth Plugin default address.

If you use [your own email sender](https://authplugin.com/docs/settings/email-sender.md), its **Reply-to** address is set there.

> [!TIP]
>
> Keep the subject short and say what the email is for. Visitors decide whether to open an email from the subject.


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