Help Getting an Outlook::_MailItemPtr in NewMail Event

Joined
May 4, 2006
Messages
1
Reaction score
0
It seems i am unable to retrieve an incoming MailItem from outlook using this code:

Outlook::_MailItemPtr spMItem;
hr = spItems->raw_GetLast(&pDisp);

spMItem = pDisp;

NOW --> spMItem is always NULL , even though this is fired in Check New Mail event

Shouldnt' get_Last item be the new email ?
How can i get my hands on this new email item ?

Thanks, appreciate the help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top