|
Features | Detailed Description
The MailMessage is a component from the Clever Internet Suite library.
It allows you to create and parse messages in alternative MIME format with file Attachments and Embedded pictures.
This component implements a complete mail message as described in the Internet Standards documents: RFC 822, RFC 1036 and RFC 2045.
Available in .NET, VCL and ActiveX editions.
- 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
- Free one year upgrades and support
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.
// [Delphi] clMailMessage1.BuildMessage('Message Text', '<html><body>Message Text</body></html>'); clMailMessage1.BuildMessage('Message Text', ['attachment.zip']); clMailMessage1.BuildMessage('Message Text', '<html>...</html>', ['picture.gif'], ['attachment.zip']); |
// [C#] mailMessage1.BuildMessage("Message Text", "<html><body>Message Text</body></html>"); mailMessage1.BuildMessage("Message Text", new string[] { "attachment.zip" }); |
See also Build E-Mail message for more details.
// [Delphi] msg.LoadFromFile('c:\message.eml'); clMailMessage1.MessageSource := msg; ... procedure TForm1.clMailMessage1SaveAttachment(Sender: TObject; ABody: TclAttachmentBody; var AFileName: string; var AData: TStream; var Handled: Boolean); begin AData := TFileStream.Create(AFileName, fmCreate); Handled := True; end; |
// [C#] 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 Suite installation to learn more about using this component in your application.
Includes support for Delphi, C++Builder, C#, VB.NET and Javascript.
When Purchasing the Clever Internet Suite you receive the full sources for all suite components and also free unlimited support.
|