|
The MailMessage is a component from the Clever Internet .NET Suite library. It allows you to create and parse messages in alternative MIME format with file Attachments and Embedded pictures. This component represents a complete mail message as described in the Internet Standards documents: RFC 822, RFC 1036 and RFC 2045.
- 100% managed code
- Load and Save MIME messages
- Text and HTML message bodies, Attachments and Embedded pictures
- Base64, Quoted-Printable, 7bit, 8bit and UUEncoded messages and attachments
- Simple access to most common headers such as Subject, Priority and Date
- Automatic CharSet detection, support for international character sets
- Can be used with any third party SMTP, POP3 or IMAP components
The MailMessage component allows easy creation of the mail messages in any formats using either a Text or HTML message source or both and also support file Attachments and Images linked to the HTML part of the message.
mailMessage1.BuildMessage("Message Text", "<html><body>Message Text</body></html>"); mailMessage1.BuildMessage("Message Text", new string[] { "attachment.zip" }); |
using(StreamReader sr = new StreamReader("c:\\message.eml")) { mailMessage1.MessageSource = StringUtils.GetStringArray(sr.ReadToEnd()); } void mailMessage1_SaveAttachment(object sender, GetBodyStreamEventArgs e) { e.Stream = new FileStream(e.FileName, FileMode.Create, FileAccess.Write, FileShare.None); } |
The MailMessage parser automatically parses most popular mail message formats: MIME, Text, UUEncoded or AppleTalk. If the mail message is damaged or has partially invalid content, the MailMessage parser will load this message and correct the most known errors.
Please see the Demos code (MailProgress, MailSendReceive, MSExchange, ImapClient, NewsGroups) and also the indexed Help documentation provided with the Clever Internet .NET Suite installation to learn more about using this component in your application.
When Purchasing the Clever Internet .NET Suite you receive the full sources for all suite components and also free unlimited support.
|