Email

In this subsection, you can manage HTML email templates that are used to notify clients and Back Office users about specific event types.

Template types

On this page, you can manage the types of events about which clients and Back Office users can be notified by email.

The following information is provided about each event type:

Name

The event type name.

Caption

The event type description.

Enabled

If Yes, an event type is enabled for triggering event notifications; otherwise, No.

Templates

On this page, you can manage HTML email templates that are used to deliver notifications about occurred events to clients and Back Office users.

The following information is provided about each template:

General information

Type

The event type.

Locale

The language of an email template.

Subject

The subject of an email template.

Enabled

If Yes, an email template is enabled and can be used to deliver notifications; otherwise, No.

To view the template details, click the Edit button.

Details

In the Template window, you can view or edit the HTML code of a template.

The parameters, such as text color or company name, that are defined in the Key-value storage can be inserted in email templates. When an email notification is sent to a client or Back Office user, such parameters are replaced with the values that are specified for them in the storage.

To render the HTML code and view how a template will look in an email, click the Preview button.

Example

The following is an example of an HTML code for an email template:

View example
{% extends extendableLayout %}{% block body_style 'margin: 0' %}{% block body %}

<table cellpadding="0" cellspacing="0" border="0" width="100%"
       style="font-family:Helvetica Neue,Helvetica,Lucida Grande,tahoma,verdana,arial,sans-serif;background-color:#{{ body_bg }};bgcolor:#{{ body_bg }};">
    <tbody>
                                        <tr>
                                            <td width="30" style="width:30px">&nbsp;</td>
                                            <td style="font-family:Helvetica Neue,Helvetica,Lucida Grande,tahoma,verdana,arial,sans-serif;font-size:17px;line-height:28px;color:#{{ text_color }};">
                                                <b>You have a new deposit received in our system!</b>
                                            </td>
                                            <td width="30" style="width:30px">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td height="30px" style="height: 30px;line-height: 30px">&nbsp;</td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td height="10px" style="height:10px;line-height:10px">&nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    <table cellpadding="0" cellspacing="0" border="0" width="100%"
                                           style="max-width:600px;background:#{{ content_bg }};bgcolor:#{{ content_bg }};border-radius:8px;">
                                        <tbody>
                                        <tr>
                                            <td height="30px" style="height: 30px;line-height: 30px">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td width="30" style="width:30px">&nbsp;</td>
                                            <td style="font-family:Helvetica Neue,Helvetica,Lucida Grande,tahoma,verdana,arial,sans-serif;font-size:17px;line-height:28px;color:#{{ text_color }};">
                                                <b>Account No</b>: {{ account.account_id }} ({{ account.currency.getAlphaCode() }})<br>
                                                <b>Amount</b>: {{ amount }} {{ payment.currency.getAlphaCode() }}<br>
                                                <b>Deposit method</b>: {{ method.localizedCaption }}<br>
                                                
                                                {% if payment.blockachain_transaction is defined and  payment.blockchain_transaction != "" and payment.blockchain_transaction_address != "" %}
                                                <b>TransactionID</b>: <a href="{{ payment.blockchain_transaction_address }}" style="color: #{{ accent_color }};text-decoration:none;">
                                                {{ payment.blockchain_transaction }}</a><br>
                                                {% endif %}
                                            </td>
                                            <td width="30" style="width:30px">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td height="25px" style="height: 25px;line-height: 25px">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td width="30" style="width:30px">&nbsp;</td>
                                            <td style="font-family:Helvetica Neue,Helvetica,Lucida Grande,tahoma,verdana,arial,sans-serif;font-size:17px;line-height:28px;color:#{{ text_color }}">
                                                Kind regards,<br>
                                                <b>Support team</b>
                                            </td>
                                            <td width="30" style="width:30px">&nbsp;</td>
                                        </tr>
    </tbody>
</table>
{% endblock body %}