# Generate and configure email templates

After configuring SMTP settings, you can generate and customize email templates used to notify clients about important events on the B2COPY investment platform.

## Generate email templates

The Admin panel allows you to automatically generate a set of email templates for all available events (also called triggers). By default, templates are generated only in English. Templates for other supported languages can be configured separately.

To generate email templates:

{% stepper %}
{% step %}
Expand the **Settings** menu.
{% endstep %}

{% step %}
Go to **Email Templates** in the menu.
{% endstep %}

{% step %}
Click **Generate templates**.

{% hint style="info" %}
If SMTP settings haven’t been configured yet, you’ll be prompted to **Go to SMTP Settings** first. Once SMTP is set up, you can proceed to generate the email templates.
{% endhint %}
{% endstep %}

{% step %}
On the **Generate Templates** page, fill in the following fields to customize your email templates:

* **Logo** (required) — click **Add file** to upload your logo. Permitted formats: PNG or SVG; maximum size: 192x50 px.
* **Logo link URL** (optional) — specify the URL of a logo image to be displayed in the email templates.
* **Email of Technical Support** (required) — specify the support email to include in the templates.
* **Company Name** (required) — enter your company name.
* **Colors** (required) — define colors for light and dark themes using HEX codes (for example, `#RRGGBB`).
* **Fee Types** (required) — enable or disable toggles for the fees. For example, if some fee types are disabled on your B2COPY investment platform, you can also disable them in the email templates.
* **Account Types Caption** (required) — enter captions for copy trading, PAMM, and MAM; these will appear in email templates.
* **Code of Footer** (optional) — enter HTML code for the footer; scripts aren't allowed.
  {% endstep %}

{% step %}
Click **Preview** in the upper-right corner to view a sample email and confirm that the applied style settings appear as expected.
{% endstep %}

{% step %}
Click **Generate** to create the email templates.
{% endstep %}
{% endstepper %}

After the email templates are generated, a table is displayed on the **Email Templates** page, listing the triggers for client email notifications and the languages in which templates exist for each trigger. By default, templates are generated only in English.

<figure><img src="/files/0W3r2fm0pymxFBVel40E" alt="Email Templates"><figcaption><p>Email Templates</p></figcaption></figure>

## Generate new templates and reset existing ones

You can re-generate email templates for the English language. All existing English templates will be removed, and new templates will be created for all triggers using the updated settings.

Templates in other languages remain unchanged.

To re-generate email templates:

{% stepper %}
{% step %}
Expand the **Settings** menu.
{% endstep %}

{% step %}
Go to **Email Templates** in the menu.
{% endstep %}

{% step %}
Click **Generate New and Reset All**.
{% endstep %}

{% step %}
Confirm the action in the displayed popup.
{% endstep %}

{% step %}
On the **Generate Templates** page, fill in the fields to customize your email templates.
{% endstep %}

{% step %}
Click **Generate** to create a new set of email templates.
{% endstep %}
{% endstepper %}

All existing English templates are deleted, and new templates are generated for all available triggers, while templates for other languages are preserved.

## Add email templates for other languages

After generating the email templates in English, you can add templates in other languages for all available triggers. For each trigger, only one template can be created per supported language.

To add an email template in another language:

{% stepper %}
{% step %}
Expand the **Settings** menu.
{% endstep %}

{% step %}
Go to **Email Templates** in the menu.
{% endstep %}

{% step %}
Select the trigger, hover over the row in the **Language** column, and click the **Add** button that appears.

<figure><img src="/files/wZhY3nPU59VxJhHQAbxV" alt="Add an email template"><figcaption><p>Add an email template</p></figcaption></figure>
{% endstep %}

{% step %}
In the displayed popup, select the language and click **Add**.
{% endstep %}

{% step %}
On the **Edit Templates** page, fill in the following fields:

* In the **Subject** field, enter the email subject.
* In the **Body** field, provide the email content. HTML is supported.

{% hint style="info" %}
Both the **Subject** and **Body** fields support variables that are listed on the right side of the **Body** list, for example, `PlatformName`, `MasterAccountLogin`, `InvestorAccountLogin`, and others. These variables are replaced with actual values when sending the email to a client.
{% endhint %}

<figure><img src="/files/4K2ZQdwFOHeh2QtOvcoo" alt="Add an email template for a specific language"><figcaption><p>Add an email template for a specific language</p></figcaption></figure>
{% endstep %}

{% step %}
Click **Preview** to render the template and see how the template appears with the applied styles and variables.
{% endstep %}

{% step %}
Enable the **Enable for trigger** toggle to activate the email template. Active templates are used for sending notifications when the respective trigger occurs.

If disabled, the template won’t be used. You can save it for future editing.
{% endstep %}

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

The language for which the template has been created will appear in the row for the respective trigger. If the template is enabled (the **Enable for trigger** toggle is active), the language appears bright; if disabled, it is grayed out.

## Edit or delete existing templates

You can edit existing email templates or delete them if they are no longer needed. Templates in English can be edited but can't be deleted.

### Edit an email template

To edit an email template:

{% stepper %}
{% step %}
Expand the **Settings** menu.
{% endstep %}

{% step %}
Go to **Email Templates** in the menu.
{% endstep %}

{% step %}
Select the trigger, click the desired language in the **Language** column, and then click **Edit** in the dropdown.
{% endstep %}

{% step %}
Make changes to the template on the **Edit Templates** page.

{% hint style="info" %}
The template can be edited regardless of the state of the **Enable for trigger** toggle. This toggle only indicates whether the template is active for sending email notifications and doesn't affect editing.
{% endhint %}
{% endstep %}

{% step %}
Click **Preview** to render the template and see how the template appears with the applied styles and variables.
{% endstep %}

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

### Delete an email template

To delete an email template:

{% stepper %}
{% step %}
Expand the **Settings** menu.
{% endstep %}

{% step %}
Go to **Email Templates** in the menu.
{% endstep %}

{% step %}
Select the trigger, click the desired language in the **Language** column, and then click **Delete** in the dropdown.

{% hint style="info" %}
Templates in English can't be deleted.
{% endhint %}
{% endstep %}

{% step %}
Confirm the action in the displayed popup.
{% endstep %}
{% endstepper %}

The selected templated will be removed.


---

# 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.b2copy.b2broker.com/admin-panel-guide/manage-b2copy-settings/generate-and-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.
