ApplicationEvents_11_Event.NewMail Event

Occurs when one or more new e-mail messages are received in the Inbox.

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

Syntax

'Declaration
Event NewMail As ApplicationEvents_11_NewMailEventHandler
'Usage
Dim instance As ApplicationEvents_11_Event
Dim handler As ApplicationEvents_11_NewMailEventHandler

AddHandler instance.NewMail, handler
event ApplicationEvents_11_NewMailEventHandler NewMail

Remarks

The NewMail event fires when new messages arrive in the Inbox and before client rule processing occurs. If you want to process items that arrive in the Inbox, consider using the ItemAdd event on the collection of items in the Inbox. The ItemAdd event passes a reference to each item that is added to a folder.

The NewMail event does not fire when the user is in offline mode.

See Also

Reference

ApplicationEvents_11_Event Interface

ApplicationEvents_11_Event Members

Microsoft.Office.Interop.Outlook Namespace