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

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