• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 530
  • Last Modified:

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
1 Solution
well if you are the recipient then logically lpRecips 'points' to you
to get the sender use lpOriginator

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now