使用C#解析.msg文件
我需要解析Outlook .msg文件。 我该怎么做? 有class级吗?
我找到了http://www.aspose.com/purchase/pricing-info-step-1-of-3.aspx
Aspose它是第三方工具,我需要购买。
没有购买还有其他方式吗?
- 在Outlook对象模型中,使用Application.Session.OpenSharedItem (将返回MalItem)。
- 如果使用Redemption是一个选项,请使用其RDOSession.GetMessageFromMsgFile方法。
这篇关于CodeProject的文章( http://www.codeproject.com/Tips/712072/Reading-an-Outlook-MSG-File-in-Csharp )是你所需要的。
非常完整和function。
你可以看看这篇文章 (首先点击谷歌 )。
几种不同的解决方案可用。 请看http://go4answers.webhost4life.com/Example/parse-msg-file-without-outlook-object-218577.aspx