how to get email address of the user

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.
 
D

Dmitry Streblechenko

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
 
R

robert dugal

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.
 

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