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