简体   繁体   English

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

[英]C#: How to view Outlook e-mail on page

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. 我正在考虑在Web应用程序中提供一种功能,使用户可以使用应用程序内置的日记工具将Outlook电子邮件项(保存时为.msg文件)附加到日记条目。 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. 整个Outlook集成对我来说是全新的,并且我已经进行了足够的研究以了解如何导入Outlook Interop并在其中使用这些类。 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. 特别是,我认为我对如何使用Outlook电子邮件文件在服务器上构建电子邮件对象感兴趣。 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. 除非有某些事情,我可能需要处理基于HTML的电子邮件。

Thanks. 谢谢。

since outlook saves emails as msg files http://www.codeproject.com/KB/office/reading_an_outlook_msg.aspx maybe this can help. 由于Outlook将电子邮件另存为msg文件,因此http://www.codeproject.com/KB/office/reading_an_outlook_msg.aspx也许可以帮上忙。 and also specs:http://msdn.microsoft.com/en-us/library/cc463912.aspx 以及规格:http://msdn.microsoft.com/en-us/library/cc463912.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM