Site Map Contact Us Home
E-mail Newsletter
Subscribe to get informed about
Clever Components news.

Your Name:
Your Email:
Previous Newsletters

Products Articles Downloads Order Support
Customer Portal      

Mail Message

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

Build New Mail Message in just few lines of code

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', ['']);
clMailMessage1.BuildMessage('Message Text', '<html>...</html>', ['picture.gif'], ['']);

// [C#]
mailMessage1.BuildMessage("Message Text", "<html><body>Message Text</body></html>");
mailMessage1.BuildMessage("Message Text", new string[] { "" });

See also Build E-Mail message for more details.

Attachments and linked pictures can be saved to or added from a stream

// [Delphi]
clMailMessage1.MessageSource := msg;
procedure TForm1.clMailMessage1SaveAttachment(Sender: TObject;
   ABody: TclAttachmentBody;
   var AFileName: string; var AData: TStream; var Handled: Boolean);
   AData := TFileStream.Create(AFileName, fmCreate);
   Handled := True;

// [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);

Accept many damaged or malformed messages

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.

Samples, including WinForm clients with full source code

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.

Complete Delphi and C# source code

When Purchasing the Clever Internet Suite you receive the full sources for all suite components and also free unlimited support.


    Copyright © 2000-2024