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 |
Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.