Consulting

Results 1 to 2 of 2

Thread: Incoming Mail - Identify Mailbox - Urgent - Please Help

  1. #1

    Incoming Mail - Identify Mailbox - Urgent - Please Help

    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.

  2. #2
    VBAX Expert JP2112's Avatar
    Joined
    Oct 2008
    Location
    Astoria, NY
    Posts
    590
    Location
    This will identify the mailbox name:

    [VBA]
    Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Parent.Nam e
    [/VBA]
    Regards,
    JP

    Read the FAQ
    Getting free help on the web
    My website
    Please use [vba][/vba] tags when posting code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •