简体   繁体   English

JavaMail-如何显示邮件内容?

[英]JavaMail - How can I diplay content of message?

So, I would like to actually SHOW the content of an email (Message object) obtained from JavaMail. 因此,我想实际展示从JavaMail获得的电子邮件(消息对象)的内容。 How could I go about doing this? 我该怎么做呢?

Note: Im not expecting to be able to view embedded videos and such, just show the email w/pictures, preferrably in a JEditorPane, JTextPane, or JPanel? 注意:我不希望能够查看嵌入式视频等,只是显示带有图片的电子邮件,最好在JEditorPane,JTextPane或JPanel中显示?

JavaMail comes with a simple client application that would get you started if you want to do all the work yourself. JavaMail带有一个简单的客户端应用程序,如果您想自己完成所有工作,它将使您入门。 You also might want to look at some of the open source projects in the JavaMail Third Party Products list; 您可能还需要查看JavaMail Third Party Products列表中的一些开源项目。 some of them might have code you could reuse or at least use for guidance. 其中一些可能包含您可以重用的代码,或者至少可以用作指导。

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

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