Skip to content

DevExpress-Examples/winforms-richedit-build-a-mail-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rich Text Editor for WinForms - Build a Mail Application with the RichEditControl

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.

image

Implementation Details

  • 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.

Files to Look At

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Create a simple mail application to convert and send documents in HTML format

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •