I would like to know how to create MAPI message in pocket pc 2002
and after to be able to read from the message :
Recipient e-mail adress or Recipient name.

I download from Microsoft site the two samples MAPI1,MAPI2.
I successes to open e-mail with PR_CE_MIME_TEXT and with PR_BODY
and create new one with PR_BODY.

I create the message like this: (from Microsoft samples)

//////////////////////////////////////////////////////////////////////////
hr = MAPIAllocateBuffer(sizeof(SPropValue) * 3, (LPVOID FAR
*)&pAddressList->aEntries[nRecipientIndex].rgPropVals);

EXIT_ON_FAILED(hr);

memset(pAddressList->aEntries[nRecipientIndex].rgPropVals, 0,
sizeof(SPropValue) * 3);

pAddressList->aEntries[nRecipientIndex].rgPropVals[0].ulPropTag =
PR_RECIPIENT_TYPE;

pAddressList->aEntries[nRecipientIndex].rgPropVals[0].Value.ul =
MAPI_TO;

pAddressList->aEntries[nRecipientIndex].rgPropVals[1].ulPropTag =
PR_ADDRTYPE;
pAddressList->aEntries[nRecipientIndex].rgPropVals[1].Value.LPSZ =
TEXT("SMTP");
AddressList->aEntries[nRecipientIndex].rgPropVals[2].ulPropTag =
PR_EMAIL_ADDRESS;
pAddressList->aEntries[nRecipientIndex].rgPropVals[2].Value.LPSZ =
pszTo;

pAddressList->aEntries[nRecipientIndex].cValues = 3;
nRecipientIndex++;
pAddressList->cEntries++;



SPropValue prop[4];

memset(prop, 0, sizeof(prop));

prop[0].ulPropTag = PR_MESSAGE_FLAGS;
prop[0].Value.ul = MSGFLAG_FROMME | MSGFLAG_UNSENT;

prop[1].ulPropTag = PR_SUBJECT;
prop[1].Value.LPSZ = const_cast<LPTSTR>(pcszSubject);

hr = m_pMessage->SetProps(2, prop, &lpProblems);


///////////////////////////////////////////////////////////////////////////
And open the message like this: (PR_SENDER_EMAIL_ADDRESS,PR_SUBJECT
...)

m_pMessage->GetProps((LPSPropTagArray)Properties,MAPI_UNICODE,
&ulPropCount, &rPropertyValue);


when I use this function to open the property I get the subject but I
cloud not get the e-mail address or Recipient name (RP...)


Thanks in advance.

Regards,
Gal