# How to configure email templates

Email templates are used to notify clients and [Back Office users](/back-office-guide/system/users/users.md) about specific system events. You can configure custom email templates instead of pre-configured ones. For a full list of supported event types and related pre-configured email templates, refer to [Email template types](/back-office-guide/references/email-template-types.md). Some types are used to notify clients, while others are for [Back Office users](/back-office-guide/system/users/users.md).

To configure an email template:

{% stepper %}
{% step %}
Navigate to **System** > **Templates** > **Email** > **Templates**.
{% endstep %}

{% step %}
Click **+Create** in the upper-right page corner.
{% endstep %}

{% step %}
On the **Create email template** page, fill in the following fields:

* In the **Type** dropdown, select the [event type](/back-office-guide/references/email-template-types.md) for which the email template will be used.

  For example, `accountCreated`: when a wallet or trading account (such as on the **MetaTrader** platform) is created for a client, this template will be used to send an email notification.
* In the **Locale** dropdown, select the language of the email template.
* In the **Enabled** dropdown, select **Yes**.
* In the **Subject** field, enter the subject of the email template.
* In the **Email template** field, specify the HTML layout for the email template.
  {% endstep %}

{% step %}
Click **Preview** to render the HTML and check how the template will appear in an email, ensuring there are no layout errors.

{% hint style="info" %}
If the template is enabled, it can be saved only after it is successfully rendered and displayed in the preview area.
{% endhint %}
{% endstep %}

{% step %}
Click **Save** to create the template.
{% endstep %}
{% endstepper %}

The template will be used to send email notifications for the selected event type.

## How to add download links for trading terminals to email templates

Adding download links for trading terminals to email templates can be helpful when sending account creation emails to clients, allowing them to easily access the required terminals.

To add the download links:

{% stepper %}
{% step %}
Navigate to **System** > **Templates** > **Email** > **Templates**.
{% endstep %}

{% step %}
Select the required template, such as `accountCreated`, `cTraderAccountCreated`, `MatchTraderClientCreated`, or others. These templates are used to send emails to clients when accounts on the respective platforms are created. Including download links for the corresponding terminals may be useful.
{% endstep %}

{% step %}
Click the **Edit** button to open the template details.
{% endstep %}

{% step %}
In the **Email template** field, add the download links in HTML format.

Example:

```html
For Web: <a href="{link-to-web-trading-terminal}" target="_blank" title="Open" style="color:{color-code}; text-decoration: none;">Open</a><br>
For Windows: <a href="{download-link}" target="_blank" title="Download" style="color:{color-code}; text-decoration: none;">Download</a><br>
For Mac: <a href="{download-link}" target="_blank" title="Download" style="color:{color-code}; text-decoration: none;">Download</a><br>
For Linux: <a href="{download-link}" target="_blank" title="Download" style="color:{color-code}; text-decoration: none;">Download</a><br>
For iOS: <a href="{download-link}" target="_blank" title="Download" style="color:{color-code}; text-decoration: none;">Download</a><br>
For Android: <a href="{download-link}" target="_blank" title="Download" style="color:{color-code}; text-decoration: none;">Download</a><br>
```

{% hint style="info" %}
If using the above example, make sure to replace `{link-to-web-trading-terminal}` and `{download-link}` with the actual URLs for each trading terminal, and `{color-code}` with the desired color code for the links. You can also adjust other styles, such as `text-decoration`, as needed to match your email template design.
{% endhint %}
{% endstep %}

{% step %}
Click **Preview** to render the HTML and check how the template will appear in the email, ensuring there are no layout errors.

{% hint style="info" %}
If the template is enabled, it can be saved only after it is successfully rendered and displayed in the preview area.
{% endhint %}
{% endstep %}

{% step %}
Click **Save** to apply the changes.
{% endstep %}
{% endstepper %}

The email template will include the trading terminal download links, making it easier for clients to access the platforms directly from their notifications.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.b2core.b2broker.com/how-to-articles/manage-system-settings/how-to-configure-email-templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
