开发者

How do I check if Outlook has new mail using the Microsoft.Office.Interop assemblies?

开发者 https://www.devze.com 2023-02-07 05:35 出处:网络
I simply want to be able to check, while outlook is open, if it has new mail from a Windows forms application.

I simply want to be able to check, while outlook is open, if it has new mail from a Windows forms application.

I'm able to capture the NewMail event(ApplicationEvents_11_NewMailEventHandler), but if new mail notification was already active before my code runs, it is not fired.

Also, how can I do this without Outlook popping up the warning windows about third party application access? In othe开发者_JAVA百科r words, how do I tell outlook to trust me? (That part may better suited to superuser)

0

精彩评论

暂无评论...
验证码 换一张
取 消