Results 1 to 2 of 2

Thread: How to find Current user

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    151

    How to find Current user

    Hello !

    I want current user of the outlook.

    I have written this code...
    Code:
     If myItem.CC = SNamesp.CurrentUser.Address Then
    myitem is any item from inbox.
    SNamesp is namespace.

    The code is working in normal outlook environment.
    But in Exchange environment it gives SNamesp.CurrentUser.Address as /admintr/excnah/mhj......../........ .

    I know .address gives this sheet only in exchange.
    But i am confused what to do?

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    151

    Re: How to find Current user

    I found method which gives current user.

    mapisession.currentuser ---- this gives me curent user.
    Now i want to find emailaddress of this user.

    So that all email where the user is the only person carbon copied will be color-flagged with a yellow flag.

    As i told you in the previous post its working fine in normal outlook environment.
    In exchange environment i am able to get the current user, how can i take out his emailid?

    Help me out...........

Posting Permissions

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



Click Here to Expand Forum to Full Width