Hi All,

I'm having difficulties adding body text to a response email on WM6 devices. My code works fine for WM5 devices and I think the problem has something to do with WM6 using the PR_BODY_HTML field in some way for responses.

My code is as follows:
Code:
nErrorCode = GetMessage(emailId, &pMessage);
		if(nErrorCode != EP_ERROR_SUCCESS)
		{
			break;
		}

		CIMessageUtil msgUtil(pMessage);

		msgUtil.PutStringPropertyIntoStream(PR_BODY, pBody, 0);
And here is the PutStringPropertyIntoStream code
Code:
void CIMessageUtil::PutStringPropertyIntoStream(ULONG nPropTag, const TCHAR *pStr, ULONG nStart)
{
	if(PROP_TYPE(nPropTag)==PT_UNICODE)
	{
		HRESULT hr;
		IStream *pstm;
		hr=m_pProp->OpenProperty(nPropTag,0,STGM_WRITE, MAPI_MODIFY,(IUnknown **)&pstm);
		if(SUCCEEDED(hr))
		{
			LARGE_INTEGER ui;
			memset(&ui, 0, sizeof(LARGE_INTEGER));
			ui.LowPart = nStart*2;
			hr = pstm->Seek(ui, STREAM_SEEK_SET, 0);
			if(SUCCEEDED(hr))
			{
				DWORD act;
				pstm->Write(pStr,lstrlen(pStr)*2,&act);
			}
			pstm->Release();
		}
	}
}
Does anyone know what the correct message fields are that I should be using on WM6? I've read on numerous sites that is has something to do with WM6 using HTML for response mails but I cannot find an actual solution anywhere.

Any help will be greatly appreciated.

Cheers,
Denis