open mail item using mail item ID

  • Thread starter Thread starter masani paresh
  • Start date Start date
M

masani paresh

Hi,

I have mail item IDs stored in file. Could any one please tell me if it
possible to open assosiated mail using mail item ID?

Thanks,
Paresh
 
Yes, assuming the items are still in the same mail stores and same folders
(in the case of Exchange mailboxes or public folders). You use the
NameSpace.GetItemFromID() method to do that.
 
Thanks Ken,

Could you please tell me what is the difference in Session.GetItemFromID and
NameSpace.GetItemFromID?

Thanks,
Paresh
 
Same thing. Session is NameSpace, although it's considered good practice to
instantiate GetNameSpace("MAPI") before using Session, at least in code not
in-process with Outlook.
 
Back
Top