.NET and Outlook COM
Does outlook (2003 or 2007) provides an event for new mails received so I can just add an event handler in my c# app?
Also, i have read issues about a dialog box that appears when other apps access outlook. When does this actu开发者_如何学Goally happens? and how is this solved?
Yes the NewMailEx event is supported in Outlook 2003 and up. It is preferred over the NewMail event because it includes the ID's of the new messages so you don't have to figure out what is new.
The dialog box occurs when you attempt to access certain protected properties of Outlook objects such as the sender of a message. This is (a pretty weak) effort to prevent email address harvesting.
Outlook 2007 and 2010 won't show this dialog if you have up-to-date virus software.
精彩评论