Outlook: Get SMTP Address in Domain

B

Ben

Hi

I have an outlook addin and need to:

A) Determine if the email was sent by the user who's mailbox it is (not
necesserily the logged in user)
B) The SMTP Address of the senders or recipients

When the sender/recipient is in the user's Exchange Domain i dont get the
SMTP address.

Any advice would be much appreciated.

Thanks
B
 
K

Ken Slovak - [MVP - Outlook]

What version of Outlook?

Are you only using the Outlook object model or are you using any other APIs?

Outlook 2007 has an AddressEntry.GetExchangeUser method that returns an
ExchangeUser class object. That class has a PrimarySMTPAddress property.

For other versions of Outlook you need to use a different API such as CDO
1.21 or Extended MAPI (neither of which is supported for .NET code) or
something like Redemption (www.dimastr.com/redemption). There are samples on
the Web for that. Otherwise you're out of luck.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top