New to Telerik Report Server? Download free 30-day trial

Add More Formatting Options to the Mail Templates


Product Progress® Telerik® Report Server


The Report Server has limited formatting options in its Mail Templates. This article elaborates on how you may add more of them.

The Mail Templates are Kendo Editors. They are set up in the CSHTML templates that get deployed with the Report Server.


The CSHTML templates can be found in the installation folder of the Report Server product, for example, C:\Program Files (x86)\Progress\Telerik Report Server\Telerik.ReportServer.Web\Views\Shared. The files are _LocalUsersMailTemplate.cshtml and _ExternalUsersMailTemplate.cshtml. The setup of the Kendo Editors in these files includes a limited number of options that can be increased to enlarge the available formatting functionality when needed. For example, if you would like to be able to select 'FontName', you need to add the fontName option as it is absent by default. Here is the relevant part of the CSHTML script for the _ExternalUsersMailTemplate.cshtml file:

<script id="externalUsersMailTemplateEditorTemplate" type="text/x-kendo-template">
    <textarea id='externalUsersMailTemplateBodyInput'
              data-messages='{ insertHtml: "variables" }'
                    name  : 'insertHtml',
                     items : [
                        #params# ]
              data-bind='value: ExternalUsersMailTemplate.Body'></textarea>
In this article