creating and moving mails to a pst file

G

Guest

Hi

Im trying to create an application that will read mails from an exchange
server and then backup old mails in a .pst file. Im programming i VB.Net and
have used MAPI to access the exchange server and mailboxes of users, and that
part works fine.

But I can't find anything about how to create a .pst file, i have tryed mapi
and cdo but nothing seams to work. I have tryed mapiSession.addStore but i
cant see the new store anywhere in Outlook.

Any ideas anybody?
 
K

Ken Slovak - [MVP - Outlook]

Use the Outlook object model for that. NameSpace.AddStore will add a PST
file that you specify by providing the path to the PST file. If the PST
doesn't exist it will be created. Be aware that a PST created that way will
only have a Deleted Items folder. You would have to add other folders as
needed.
 
G

Guest

Thanx a lot!!
it works it works hehe,..


Ken Slovak - said:
Use the Outlook object model for that. NameSpace.AddStore will add a PST
file that you specify by providing the path to the PST file. If the PST
doesn't exist it will be created. Be aware that a PST created that way will
only have a Deleted Items folder. You would have to add other folders as
needed.
 

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