Lets say I dont have Microsoft Outlook in my computer.
How to create C:\\Backup.pst file without Microsoft Outlook installed?
I am looking for vb.net code for this. Thanks in advance.
You can
Build the PST file yourself, its format is documented https://msdn.microsoft.com/en-us/library/ff385210%28v=office.12%29.aspx?f=255&MSPPError=-2147217396 .
Use an existing component, such as PST.Net ( http://www.independentsoft.com/pst/index.html ). I have not used it, so I don't know how good it is.
Use Extended MAPI (C++ or Delphi) to create a temporary profile to add a new PST to it. You would still need to have the MAPI system installed, which means either Outlook or the standalone version of MAPI ( http://www.microsoft.com/en-us/download/details.aspx?id=39045 ) must be installed. Note that the latter does not support Unicode PST file.
Use Redemption (any language) - it still requires Outlook or the standalone version of MAPI to have a functioning MAPI system, but it allows to create PST files without running Outlook.
set Session = CreateObject("Redemption.RDOSession") set Store = Session.LogonPstStore("c:\\temp\\test.pst") Store.ValidateIPMTree set Inbox = Store.GetDefaultFolders(olFolderInbox) set Items = Inbox.Items set Msg = Items.Add Msg.Sent = true Msg.Subject = "test" Msg.Body = "test message" Msg.Save set Msg = Nothing set Items = Nothing set Inbox = Nothing set Store = Nothing Session.Logoff
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.