How to read mails from a PST file? RRS feed

  • Question

  • User-2036953633 posted

    How to read emails from a PST file. I got the code for reading the mails from the Outlook Inbox.

    But Im not able to read an independent PST file which is stored in my disc.

    Here is the code I used for reading from Inbox.

    Dim oApp As Outlook.Application
    Dim oNS As Outlook.NameSpace
    Dim oItems As Outlook.Items
    oApp = New Outlook.Application
    oApp = CType(CreateObject("Outlook.Application"), Outlook.Application)
    oNS = oApp.GetNamespace("MAPI")
    Dim oInbox As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
    oItems = oInbox.Items

    Please someone help me.


    Monday, July 10, 2006 9:04 AM

All replies

  • User-1175930543 posted

    Good solution is to use managed API to read .pst files.

    There is a library we used in our projects: PST .NET 

    Thursday, December 16, 2010 3:26 AM