简体   繁体   English

javamail-使用cid:image阅读电子邮件

[英]javamail - read an email with cid:image

I read Emails with JavaMail. 我用JavaMail阅读电子邮件。 All is working. 一切正常。

My problem are Inline-Images, which are inserted by cid:image This images are not shown in the Email. 我的问题是Inline-Images,由cid:image插入。该图像未显示在电子邮件中。

How is the workflow in JavaMail to show this images in an Email? JavaMail中的工作流程如何在电子邮件中显示此图像?

Can you give me some tips how to handle it? 您能给我一些使用技巧吗? I have found here this posting which helps me not really: Javamail and Javafx. 我在这里发现了这个帖子,它对我的​​帮助不大: Javamail和Javafx。 Read and show mail embedded images 阅读和显示邮件嵌入式图像

How are you displaying the contents of the message? 您如何显示消息的内容? You're going to have to do something so that URLs of the form "cid:" are able to be resolved to the attachments in the message. 您将需要做一些事情,以便能够将格式为“ cid:”的URL解析为邮件中的附件。 If you're displaying the message contents in a web browser, you'll probably want to process the message text and convert the cid: references into a file: or http: reference and make sure the attachment data is available at that URL. 如果要在Web浏览器中显示消息内容,则可能需要处理消息文本并将cid:引用转换为file:或http:引用,并确保该URL上的附件数据可用。

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

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