IMailBox Interface
Topic Last Modified: 2006-06-13
Provides access to a hierarchy of folders belonging to a person.
CLSID
CD000125-8B95-11D1-82DB-00C04FB1625D
Extends
IDispatch
Type Library
Microsoft CDO for Exchange 2000 Library
DLL Implemented In
CDOEX.DLL
Member Summary
The following table lists the properties of the IMailBox interface.
Name | Description |
---|---|
Returns the URL to the primary folder in a mailbox, usually the inbox. This property is read-only. |
|
Returns the URL to the folder containing items of calendar content. This property is read-only. |
|
Returns the URL to the folder containing items of contact content. This property is read-only. |
|
Returns the URL to the folder containing deleted items. This property is read-only. |
|
Returns the URL to the folder containing items being composed. This property is read-only. |
|
Returns the URL to the folder containing items of form content. This property is read-only. |
|
Returns the URL to the inbox folder. This property is read-only. |
|
Returns the URL to the folder containing items of journal content. This property is read-only, and is not yet implemented. |
|
Returns the URL to the folder containing items of notes content. This property is read-only, and is not yet implemented. |
|
Returns the URL to the folder containing items to be sent, or not yet sent. This property is read-only. |
|
Returns the URL to the highest folder in the hierarchy, usually the Mailbox. This property is read-only. |
|
Returns the URL to the folder containing sent items. This property is read-only. |
|
Returns the URL to the folder containing items of task content. This property is read-only, and is not yet implemented. |
Remarks
The IMailbox interface provides quick access to the folders in a user's mailbox.
Example
This example shows how to use IMailbox with the Collaboration Data Objects (CDO) Person object to get the URL of a person's inbox when you know the e-mail address.
[VBScript]
email = WScript.Arguments(0)
Set Person = CreateObject("CDO.Person")
strURL = "mailto:" & email
Person.DataSource.Open strURL
Set Mailbox = Person.GetInterface("IMailbox")
WScript.Echo "URL to inbox for " & email & " is: " & Mailbox.Inbox