MailItem Interface

Represents a mail message.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<GuidAttribute("00063034-0000-0000-C000-000000000046")> _
<CoClassAttribute(GetType(MailItemClass))> _
Public Interface MailItem _
    Inherits _MailItem, ItemEvents_10_Event
'Usage
Dim instance As MailItem
[GuidAttribute("00063034-0000-0000-C000-000000000046")]
[CoClassAttribute(typeof(MailItemClass))]
public interface MailItem : _MailItem, 
    ItemEvents_10_Event

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _MailItem. For information about the event members of the COM object, see ItemEvents_10_Event.

Use the CreateItem method to create a MailItem object that represents a new mail message.

Use Item (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 a specified folder.

See Also

Reference

MailItem Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Share Free/Busy Schedule Within a Specified Period in a Calendar

How to: Send a Mail Item with an Electronic Business Card

How to: Create a Mail Item by Using a Message Template

How to: Create a Mail Item, Attach a Report, and Send the Mail Item to the User's Manager

How to: Send an E-Mail Given the SMTP Address of an Account

How to: Add Voting Options to a Mail Item

How to: Add a Custom Action as a Response to a Mail Item

How to: Get the SMTP Address of the Sender of a Mail Item

How to: Specify Different Recipient Types for a Mail Item

How to: Search and Obtain Items in an Aggregated View

How to: Create a Task Item

How to: Flag Mail Items from a Manager for Follow-Up