C#:如何在页面上查看Outlook电子邮件

发布于 2024-10-19 14:56:33 字数 466 浏览 1 评论 0原文

我正在考虑在我的 Web 应用程序中提供一项功能,以便用户使用应用程序内置的日记工具将 Outlook 电子邮件项目(保存时为 .msg 文件)附加到日记条目。我认为我可以处理将文件与日记条目相关联并存储内容,但我还想为他们提供一种在应用程序中查看电子邮件的方法。

因此,如果用户正在查看过去的日记条目,请注意与之关联的电子邮件,他们可以单击并立即查看。整个 Outlook 集成对我来说是全新的,我已经做了足够的研究来了解如何导入 Outlook Interop 并使用其中的类。但这就是我所了解到的。

我不是在寻找全面的解决方案,但有谁知道是否有原因我可能无法做到这一点?如果可以的话,哪些课程特别允许我这样做?或者是否有一篇文章涵盖了我错过的内容?

特别是,我想我对如何使用 Outlook 电子邮件文件在服务器上构建电子邮件对象感兴趣。从那里,我想这应该是访问对象的属性并在视图中输出内容的问题。除非我需要处理基于 html 的电子邮件。

谢谢。

I'm thinking about providing a capability in my web app for a user to attach an Outlook e-mail item (.msg file when you save it) to a journal entry using a journaling tool built into the application. Associating the file with the journal entry and storing the contents are things I think I can handle, but I'd also like to provide them with a way to view the e-mail right in the application.

So if a user is viewing a past journal entry, notice that an e-mail is associated with it, they can click and view right there. This whole Outlook integration is brand new to me, and I've done enough research to know to import the Outlook Interop and use the classes there. But that's about as far as I've gotten.

I'm not looking for a comprehensive solution, but does anyone know if there is a reason I might not be able to do this? If I can, which classes in particular are going to allow me to do this? Or is there an article that covers this that I've missed?

In particular, I think I'm interested in how to use an outlook e-mail file to build an e-mail object on the server. From there, I imagine it should be a matter of accessing the object's properties and outputting the contents in the view. Unless there's something I may need to do with html-based e-mails.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

对你的占有欲 2024-10-26 14:56:33

因为 Outlook 将电子邮件保存为 msg 文件
http://www.codeproject.com/KB/office/reading_an_outlook_msg.aspx也许这会有所帮助。还有规格:http://msdn.microsoft.com/en-us/library/cc463912.aspx

since outlook saves emails as msg files
http://www.codeproject.com/KB/office/reading_an_outlook_msg.aspx maybe this can help. and also specs:http://msdn.microsoft.com/en-us/library/cc463912.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文