Microsoft Office Tutorials and References
In Depth Information
Named Constants for the Folder Object’s DefaultItemType Property
Exchange distribution list items (relevant to Exchange Server
Mail items (email messages)
Post items (an item posted to a public folder)
Programming Email Items
In Outlook, an email message is represented by the MailItem object. Once you have a reference
to a folder containing email items, you can loop through the folder’s Items collection to access
each email in turn. You can also create macros that compose and send email messages.
Working with Received Messages
Many of the things you’ll do with email messages that you have received involve message
properties that provide information about the subject, recipients, sender, and other aspects of the
message. The MailItem properties used most often when working with received messages are
described in Table 24.3.
MailItem Properties Used When Working with Received Messages
A collection of Attachment objects, each representing a document or link attached
to the message.
Text of the message (if the message is in plain text format).
The date when the message was created (as a type Date ).