Partager via


Working with Mail Items

The MailItem class contains the methods and properties you use to perform tasks with e-mail messages.

Task

Procedure

Create an e-mail message.

How to: Programmatically Create an E-Mail Item

Send an e-mail message.

How to: Programmatically Send E-Mail Programmatically

Respond to new e-mail messages with a custom action.

How to: Programmatically Perform Actions When an E-Mail Message Is Received

Save attachments.

How to: Programmatically Save Attachments from Outlook E-Mail Items

Add attachments

How to: Programmatically Attach Files to Outlook E-Mail Items

Iterate through all unread messages.

How to: Programmatically Retrieve Unread Messages from the Inbox

For more information about Outlook tasks and the Outlook object model, see Outlook Object Model Overview.

See Also

Concepts

Working with Contact Items

Working with Folders

Working with Calendar Items

Other Resources

Outlook Solutions