Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to send a report as HTML in an email body

$
0
0

This example demonstrates how to export a report to an email message and use the mailing functionality of the .NET Framework to programmatically send the generated message to an arbitrary number of recipients using the required email settings. To accomplish this task, use the report's ExportToMail method. This method returns an instance of the System.Net.Mail.MailMessage class. The body of the resulting mail message contains an HTML representation of the report contents optimized for sending using email.

After a mail message is generated, you can initialize a System.Net.Mail.SmtpClient and call its SmtpClient.Send method to send the message.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>