open mail item using mail item ID

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
 
K

Ken Slovak - [MVP - Outlook]

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

masani paresh

Thanks Ken,

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

Thanks,
Paresh
 
K

Ken Slovak - [MVP - Outlook]

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.
 

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