Currently it is not possible to send a MHTML document generated by Telerik Reporting directly in the message body of an e-mail. Still you may take a look at the Sending Inline MHTML
thread at StackOverflow for alternative solutions. One of the possible ways is to save the html pages and images as separate files and then add the images as LinkedResources to the html body of the message.
Here is a sample code snippet which illustrates how to export a report to HTML format and save its streams as files:
List<FileStream> files =
extension, Encoding encoding,
var filePath = Path.ChangeExtension(Path.Combine(BasePath, name), extension);
var fileStream =
var deviceInfo =
] = BasePath;
var documentName =
var reportProcessor =
sender, EventArgs e)
var fileRenderer =
Hope this helps.
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>