This documentation is archived and is not being maintained.
MailItem Object
Office 2007
| Outlook Developer Reference |
Remarks
Use the CreateItem method to create a MailItem object that represents a new mail message.
Use Items (
Example
The following example creates and displays a new mail message.
| Visual Basic for Applications |
|---|
|
The following example sets the current folder as the Inbox and displays the second mail message in the folder.
| Visual Basic for Applications |
|---|
|
Show: