Convert multiple eml files to single PST in C#

后端 未结 4 1415
名媛妹妹
名媛妹妹 2021-01-03 17:30

I need to write a single function which will take multiple eml files ( may be from a single filesystem folder ) and convert them to a single PST file.

Is it possibl

4条回答
  •  猫巷女王i
    2021-01-03 18:05

    You can use Redemption for that. Something along the lines:

      set Session = CreateObject("Redemption.RDOSession")
      Session.LogonPstStore("c:\temp\test.pst")
      set Folder = Session.GetDefaultFolder(olFolderInbox)
      set Msg = Folder.Items.Add("IPM.Note")
      Msg.Sent = true
      Msg.Import("c:\temp\test.eml", 1024)
      Msg.Save
    

提交回复
热议问题