Results 1 to 7 of 7
  1. #1
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Get User's Email Address (Any?)

    With Exchange server and Outlook 2000 clients how/where can I extract the current logged in user's email address?
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Get User's Email Address (Any?)

    Get it from where, logged into what? Are you trying to get it from an administrative workstation or from the user's workstation or something else entirely?
    Charlotte

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Get User's Email Address (Any?)

    For security reasons, the critical account information is inaccessible through the Outlook object model. I had this notion that you could use automation to create a new message (hidden) and read it out of these, but apparently it doesn't exist as a property of the MailItem until you send it. Sent Items could be perused, but if multiple senders work on the same PC... Hmmm...

  4. #4
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Get User's Email Address (Any?)

    Even if multiple users use the same PC, they log in under different usernames. So, maybe your idea is correct: Examine a sent message in the Sent folder and peal the email address off that. I need the address to be username@domain.name format. Can that be assured?
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  5. #5
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Get User's Email Address (Any?)

    I don't care where I get it, I just want to get it. And so far I am not trying anything. I'm looking for direction here. Jefferson has a good idea. I'll pursue that unless somebody posts code or offers a different method.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Get User's Email Address (Any?)

    Nothing is assured. <img src=/S/grin.gif border=0 alt=grin width=15 height=15> Because the object model only exposes the SenderName (display name) rather than the address of a message, you have to use the Reply method to grab the address. Scan around for a star post on how to code it. I think that regardless of how your current view sorts the folder, the items collection always starts with the oldest. Thus, it would make the most sense to grab the "last" item in the folder, on the theory that it is the most likely to have the current address. Make sense?

  7. #7
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Get User's Email Address (Any?)

    Yes, it all makes sense. But I have discovered that some users keep their sent folder cleaned up. Therefore, there may not be any items to open in order to get the "from". I'm working a couple different angles.

    I checked out Redemption.dll but can't find an example that will pull the email address from the Exchange account. That's what I'm gonna need.

    I've also got a LDAP solution to try. Busy, busy.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

Posting Permissions

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