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!