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
 
Back
Top