What is my email address?

  • Thread starter Thread starter JahMic
  • Start date Start date
J

JahMic

Seems like a silly question really, but I am unable to find out,
programmatically, which one of the recipients is 'me'. Yes, using
PR_RECIP_ME, I can find out if I am one of the recipients, so how can
I found out which 'account name' this one received upon.

Thanks, J
 
C++, OOM is preferred except when security constraints are involved,
otherwise dropping down to Mapi is fine. Because of the security
warnings, most recipient handling is thus far in Mapi.

Thanks, J
 
OOM: Application.Session.CurrentUser.Address
Extended MAPI: IMAPISession::QueryIdentity (returns the entry if of
IMailUser). Call IMAPISession::OpenEntry (get back IMailUser), then
IMailUser::GetProps (or HrgetOneProp) to retrieve PR_EMAIL_ADDRESS.

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