creating and moving mails to a pst file

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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.
 
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.
 
Back
Top