detecting new mail in shared mailbox

M

Mark VII

Greetings --

I'm doing some work on automated processing of incoming email. Am able to
detect and process email coming into my personal inbox by hooking the
Application_NewMailEx event. However when email arrives in a shared mailbox,
this event doesn't fire.

What's the best way to detect new mail in a shared mailbox? I'm trying to
stay away from rules, because of the way that VbaProject_OTM disappears
sometimes if you use rules.

Thanks,
Mark
 
S

Sue Mosher [MVP-Outlook]

Subscribe to the MAPIFolder.Items.ItemAdd event on the mailbox's Inbox folder, which you can return with the Namespace.GetSharedDefaultFolder method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top