Message object

Description

The message object represents a single e-mail message.

Methods


AddRecipient(STR sName, STR sAddress)
Adds a recipient to the e-mail.

ClearRecipients()
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.

RefreshContent()
Refreshes the message content

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

Properties


Attachments Attachments 
The attachments of the message
(read-only)

string Body
The plain text contents of the e-mail.

string CC
The CC-header of the email
(read-only)

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
(read-only)

bool EncodeFields
Encode fields.

string Filename
The filename in witch the message is stored
(read-only)

bool Flag(eMessageFlag iType)
Message flags

string From
The sender of the e-mail.

string FromAddress
The sender address of the message, taken from "mail from" during the SMTP conversation and then inserted as the first occurrence of Return-Path.
Collection of message headers
(read-only)

string HeaderValue(string FieldName)
Value of the first occurrence of the given header field. FieldName is not case sensitive.

string HTMLBody
The HTML contents of the e-mail.

long ID
The unique database identifier for the e-mail
(read-only)

VARIANT InternalDate
The internal date and time of this message
(read-only)

Recipients Recipients
An list of recipients of this email
(read-only)

long Size
The size of the message, counted in kilobytes
(read-only)

long State
The state of the message
(read-only)

string Subject
The subject of the e-mail.

string To
The To-header of the email
(read-only)

Search documentation