Send Telerik Report in an E-Mail
Since R3 2018 (12.2.18.912) release this feature is supported out of the box. For more information, see the Send Mail Message help article.
Environment
Product | Progress® Telerik® Reporting |
Report Viewer | HTML5-based Report Viewers |
Description
Telerik Reports can be exported in various formats including HTML. The HTML rendering is used by web viewers as well. Browsers handle correctly the HTML and the passed CSS, but to use it in an e-mail the result HTML and CSS have to be adjusted based on the selected mail client.
Solution
The approach that we recommend is to export a report in a format like PDF. Then to attach the exported report to the e-mail, instead of placing the content as HTML. An example is available in the Send Telerik Report as email attachment code library post.
Notes
In case using HTML is a requirement, you can export a report programmatically in HTML5 or HTML5Interactive format, and adjust the HTML/CSS to cover the requirements of the used e-mail client.