Progress® Telerik® Reporting R3 2021

New to Telerik Reporting? Download free 30-day trial

Implement Send Mail Message

This tutorial elaborates how to implement the SendMailMessage method of the ReportsController. This is required to enable the send document endpoint used for HTML5 Report Viewer Send Mail Message functionality.

To send e-mail use the MailMessage with SMTP client as shown in the following code snippet:

protected override HttpStatusCode SendMailMessage(MailMessage mailMessage)
    using (var smtpClient = new SmtpClient("", 25))
        smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;
        smtpClient.EnableSsl = true;

    return HttpStatusCode.OK;

See Also

Other Resources

In this article
Not finding the help you need?