从 Outlook 中检查未读邮件
如何从asp.net 4.0查看outlook 2007的未读邮件? 我正在使用 Express 版本,并且添加了 Microsoft Office 对象库 12 的引用。我不确定应该编写什么代码才能从 Outlook 中查看 uread 邮件。 有什么帮助吗?
编辑1
我在stackoverflow上遇到了重复的问题从 Outlook 获取未读邮件
但我在运行应用程序时遇到错误 [运行时错误]:
System.IO.FileNotFoundException: Could not load file or assembly 'Office, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
How to check unread mail of outlook 2007 from asp.net 4.0 ?
I am using Express edition and I have added reference of Microsoft office object library 12. I am not sure what should I code to see the uread mail from my outlook.
Any help?
EDIT 1
I have got the duplicate question on stackoverflow Get unread Mails from Outlook
But I am getting error while running the application [Runtime Error]:
System.IO.FileNotFoundException: Could not load file or assembly 'Office, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试以下代码怎么样?
使用 Outlook = Microsoft.Office.Interop.Outlook; //您需要添加Microsoft Office 11.0对象库才能使用它。我的版本是 11,您可能有旧版本或更高版本。
What About Giving the following code a try
using Outlook = Microsoft.Office.Interop.Outlook; //you need to add the Microsoft Office 11.0 Object Library to use this. mine is version 11 you might have an older or later version.