none
Property to get Mailbox domain or Mailbox Server Name Info RRS feed

  • Question

  • Is there any mapi property which can be used to get the Mailbox domain name info or Mailbox server name info?
    kanagar
    Friday, January 13, 2012 7:56 AM

Answers

  • Try NameSpace.ExchangeServerName and NameSpace.ExchangeServerVersion. Those work for Exchange server.
     
    You can also use NameSpace.CurrentUser.AddressEntry.Address to get the address and parse out the domain. If the address is an Exchange address you can use NameSpace.CurrentUser.AddressEntry.GetExchangeUser().PrimarySmtpAddress and parse out the domain from that.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "kanagar" <=?utf-8?B?a2FuYWdhcg==?=> wrote in message news:9c320fa3-5bcf-4079-906c-0f2847f36e09...
    Is there any mapi property which can be used to get the Mailbox domain name info or Mailbox server name info?
    kanagar

    Ken Slovak MVP - Outlook
    • Marked as answer by kanagar Monday, January 16, 2012 3:59 AM
    Friday, January 13, 2012 3:45 PM
    Moderator