PDA

View Full Version : Incoming Mail - Identify Mailbox - Urgent - Please Help



Jeevie
02-10-2011, 09:40 PM
Hi All

I am working on a project to identify incoming mails to any mailbox which is part of a user profile. I have been able to make it work if I explicitly specify the mailbox name. However if I use it on different users, I would have to change the names accordingly. I am looking for a script that can identify dynamically the mailbox receiving the incoming mail and run other routines accordingly.

I seemed to have hit a dead end and would appreciate any help on this.

Thanks in advance.

JP2112
02-14-2011, 11:38 AM
This will identify the mailbox name:


Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Parent.Name