how to get email address of the user

  • Thread starter Thread starter robert dugal
  • Start date Start date
R

robert dugal

In my exchange client extension's IExchExtMessageEvents::OnWrite()
event I need to know the email address of the user who is creating the
message. Using IMAPISession::QueryIdentity(), then opening this entry
in the address book, and getting PR_EMAIL_ADDRESS only works in
Internet Only mode. When I try this in Corporate/Workfroup mode
IMAPISession::QueryIdentity() returns MAPI_W_NO_SERVICE.
 
Are you sure it is not the other way around? QueryIdentity works just fine
in C/W, but not in IMO.
You can access Application.Namespace.CurrentUser.Address from your ECF, but
it is subject to the security prompts.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
It definately works in IMO mode with Outlook 2000. I just re-verified
it.
It also seems to work in C/W mode if I add the Internet Email
transport.
So it looks like the problem must be with my own transport that is
being developed by another developer.
 
Back
Top