O'Reilly logo

ASP in a Nutshell, 2nd Edition by A. Keyton Weissinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Message Object

Parent object: Messages collection.

An object reference to a Message object is returned from a call to the Add method of a Messages collection.

Each Message object in the Messages collection contains a single email message or document. Each Message object is the child of a Messages collection. A Message object can contain embedded Attachment objects. Table 15.10 through Table 15.12 list the properties, collections, and methods, respectively, of the Message object.

Table 15.10. Message Object Properties

Property

Description

Attachments

Points to either a single Attachment object or to the Message object's Attachments collection.

ContentBase

The Content-Base header of a MIME message content body.

ContentID

The Content-ID header of a MIME message content body.

ContentLocation

The Content-Location header of a MIME message content body.

HTMLText

A string value that represents the HTML version of the content body of the Message object.

Importance

An integer value that represents the priority of a Message object. This priority is used by the messaging system to schedule sending messages.

MessageFormat

An integer value that indicates whether the message is MIME encoded or simple text.

Recipients

An object pointer either to a single Recipient object for the current Message object or to the Recipients collection of the Message object.

Sender

The email address of the sender of the current Message object. This is an AddressEntry object.

Size

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required