Message object


The message object represents a single e-mail message.


AddRecipient(STR sName, STR sAddress)

Adds a recipient to the e-mail.


Clears the recipient of the email (including the MIME-headers).

Copy(long iDestinationFolderID)

Copies the message to the specified IMAP folder

HasBodyType(string BodyType)

Check whether an email contains a specific content-type.


Refreshes the message content


Saves the email. If this is a new email, it will be delivered after save.


Attachments Attachments

The attachments of the message.

string Body

The plain text contents of the e-mail.

string CC

The CC-header of the email.

string Charset

The main character set of the email.

string Date

The date header of the e-mail message.

long DeliveryAttempt

The number of this delivery attempt.

bool EncodeFields

Encode fields.

string Filename

The filename in witch the message is stored.

bool Flag(eMessageFlag iType)

Message flags

string From

The sender of the e-mail.

string FromAddress

The sender address of the message.

Collection of message heades.

string HeaderValue(string FieldName)

Value of the given header field.

string HTMLBody

The HTML contents of the e-mail.

long ID

The unique database identifier for the e-mail.

VARIANT InternalDate

The internal date and time of this message.

Recipients Recipients

An list of recipients of this email

long Size

The size of the message, counted in kilobytes.

long State

The state of the message.

string Subject

The subject of the e-mail.

string To

The To-header of the email.

Search documentation