MailItem Object

Description

Represents a mail message in an Inbox (mail) folder.

Using the MailItem Object

Use the CreateItem method to create a MailItem object that represents a new mail message. The following example returns a new mail message.

Set myItem = myOlApp.CreateItem(olMailItem)
Use Items(index), where index is the index number of a mail message or a value used to match the default property of a message, to return a single MailItem object from an Inbox folder.

Properties

Actions property, AlternateRecipientAllowed property, Application property, Attachments property, AutoForwarded property, BCC property, BillingInformation property, Body property, Categories property, CC property, Companies property, ConversationIndex property, ConversationTopic property, CreationTime property, DeferredDeliveryTime property, DeleteAfterSubmit property, EntryID property, ExpiryTime property, FlagDueBy property, FlagRequest property, FlagStatus property, FormDescription property, GetInspector property, Importance property, LastModificationTime property, MessageClass property, Mileage property, NoAging property, OriginatorDeliveryReportRequested property, OutlookInternalVersion property, OutlookVersion property, Parent property, ReadReceiptRequested property, ReceivedByEntryID property, ReceivedByName property, ReceivedOnBehalfOfEntryID property, ReceivedOnBehalfOfName property, ReceivedTime property, RecipientReassignmentProhibited property, Recipients property, ReminderOverrideDefault property, ReminderPlaySound property, ReminderSet property, ReminderSoundFile property, ReminderTime property, RemoteStatus property, ReplyRecipientNames property, ReplyRecipients property, Saved property, SaveSentMessageFolder property, SenderName property, Sensitivity property, SentOn property, SentOnBehalfOfName property, Size property, Subject property, To property, UnRead property, UserProperties property, VotingOptions property, VotingResponse property.

Methods

ClearConversationIndex method, Close method, Copy method, Delete method, Display method, Forward method, Move method, PrintOut method, Reply method, ReplyAll method, Save method, SaveAs method, Send method.

Events

Close event, CustomAction event, CustomPropertyChange event, Forward event, Open event, PropertyChange event, Read event, Reply event, ReplyAll event, Send event, Write event.