getting the e-mail address from internal Exchange user

A

Al_21_11

Hi

I am trying to get the e-mail address from external exchange user by using
SenderEmailAddress. But it is returning the folder directory for the user
account not the e-mail address. Does anyone know of another method?

thanks
 
K

Ken Slovak - [MVP - Outlook]

What do you mean by folder directory?

SenderEmailAddress should return an SMTP address for senders external to an
Exchange organization and return the EX address for senders internal to an
Exchange organization.
 
D

Dmitry Streblechenko

I guess you mean the EX type address (as opposed to SMTP).
If you are using Outlook 2007, you can try to use
ExchangeUser.PrimarySmtpAddress property.
Otherwise you can use either Extended MAPI or <plug>Redemption - use
RDOMail.Sender.SmtpAddress property </plug>.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
Top