如何配置电子邮件模板

了解如何配置电子邮件模板,以便就特定系统事件通知客户和后台用户

电子邮件模板用于就特定系统事件通知客户和后台用户。您可以配置自定义电子邮件模板来替代预配置模板。有关支持的事件类型及相关预配置电子邮件模板的完整列表,请参阅电子邮件模板类型。某些类型用于通知客户,其他类型则用于通知后台用户。

要配置电子邮件模板:

导航至 System > Templates > Email > Templates。

点击页面右上角的 +Create。

在 Create email template 页面中,填写以下字段:

  • 在 Type 下拉列表中,选择将使用该电子邮件模板的事件类型。

    例如,accountCreated:当为客户创建钱包或交易账户(例如 MetaTrader 平台上的账户)时,将使用此模板发送电子邮件通知。

  • 在 Locale 下拉列表中,选择电子邮件模板的语言。

  • 在 Enabled 下拉列表中,选择 Yes。

  • 在 Subject 字段中,输入电子邮件模板的主题。

  • 在 Email template 字段中,指定电子邮件模板的 HTML 布局。

点击 Preview 以渲染 HTML,并检查模板在电子邮件中的显示效果,确保不存在布局错误。

如果模板已启用,只有在成功渲染并显示在预览区域后才能保存。

点击 Save 以创建模板。

该模板将用于针对所选事件类型发送电子邮件通知。

在向客户发送账户创建电子邮件时,在电子邮件模板中添加交易终端下载链接会很有帮助,使客户能够轻松访问所需的终端。

要添加下载链接:

导航至 System > Templates > Email > Templates。

选择所需的模板,例如 accountCreated、cTraderAccountCreated、MatchTraderClientCreated 或其他模板。这些模板用于在相应平台上创建账户时向客户发送电子邮件。添加相应终端的下载链接可能会很有用。

点击 Edit 按钮以打开模板详细信息。

在 Email template 字段中,以 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 />

如果使用上述示例,请务必将 {link-to-web-trading-terminal} 和 {download-link} 替换为各交易终端的实际 URL,并将 {color-code} 替换为所需的链接颜色代码。您还可以根据需要调整其他样式,例如 text-decoration,以匹配您的电子邮件模板设计。

点击 Preview 以渲染 HTML,并检查模板在电子邮件中的显示效果,确保不存在布局错误。

如果模板已启用,只有在成功渲染并显示在预览区域后才能保存。

点击 Save 以应用更改。

电子邮件模板将包含交易终端下载链接,使客户能够直接通过通知更轻松地访问平台。

最后更新于

本页目录