This example illustrates how to use the RichEditControl to create a simple mail application that sends a loaded document in HTML format. The System.Net.Mail.MailMessage class methods are used to create a message. The message is sent with the help of the System.Net.Mail.SmtpClient class instance.
-
Convert the loaded document into the HTML formatted stream. Use the GetHtmlText method to retrieve the loaded document as HTML formatted content.
-
You can use the IUriProviderService interface implementation to embed images as linked resources.
-
Handle the BeforeExport event to specify the required encoding and create a System.Net.Mail.AlternateView object required for HTML email format.
(you will be redirected to DevExpress.com to submit your response)