none
Getting SMTP addresses without communicating with Exchange? RRS feed

  • Question

  • Hi,

    Is there a way to get smtp addresses for a recipient, without using GetExchangeUser (which, depending on the connection with Exchange, may take long seconds)?
    I guess that OL does have cache for that. Can I use it? 
    If I would use MAPI and not OOM - would it help?

    Thanks,
    Moshe

    Wednesday, May 8, 2013 9:30 PM

Answers

  • Sometimes (but not always) the SMTP address would be available in the recipient table - check with OutlookSpy (click IMessage, go to the GetRecipientTable tab) if the PR_SMTP_ADDRESS_W (DASL name http://schemas.microsoft.com/mapi/proptag/0x39FE001F) property is available.

    If yes, you can access it using Recipient.PropertyAccessor.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, May 8, 2013 10:20 PM