NewMail event

Joined
Jan 31, 2012
Messages
1
Reaction score
0
Hi,

I have a little problem when I need to trigger NewMail event in Outlook VBA. I wrote this code in ThisOutlookSession:


Code:
[LEFT][COLOR=blue]Private[/COLOR] [COLOR=blue]Sub[/COLOR] Application_NewMail() [/LEFT]

 
[LEFT]   [COLOR=blue]Call[/COLOR] CheckforNewDocConMail [/LEFT]
 
[LEFT][COLOR=blue]End Sub[/COLOR] [/LEFT]


The problem is that in my outlook application there are two mailboxes (see attachment):
1) Mailbox - My name;
2) Mailbox - company name.

The first mailbox is my personal mailbox and the second mailbox is shared mailbox and may colleagues also have connection to this mailbox. And it seems that NewMail event is triggered only when I receive new mail into my personal mailbox, however, I need this code to be triggered when the new mail comes into the shared mailbox.

Is there any way to do that?

Kind regards,
walduxas
 

Attachments

  • outlook printscreen.webp
    outlook printscreen.webp
    57.9 KB · Views: 418
Back
Top