Link to home
Start Free TrialLog in
Avatar of TomLenen
TomLenen

asked on

Simple MAPI

Hi all,

I am attempting to create a simple application that will read my email messages and display some info about them. The thing I am having trouble with is displaying the general info. Here is some code:

MError := MAPIReadMail(MAPISession, 0, @sMessageID, MAPI_ENVELOPE_ONLY, 0, lppMapiMessage);

Now 'lppMapiMessage.lpRecips.lpszAddress' should hold the senders email adress and 'lppMapiMessage.lpRecips.lpszName' should hold the senders name. But it holds my OWN email adress and my own name. Could anyone tell me what I am doing wrong please. Thank you!

Sincerely, Tom
ASKER CERTIFIED SOLUTION
Avatar of Lee_Nover
Lee_Nover

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial