问题描述
下面是我解析邮件内容的方法publicvoidgetMailContent(Partpart)throwsMessagingException,IOException{StringcontentType=part.getContentType();intnameindex=contentType.indexOf("name");booleanconname=false;if(nameindex!=-1){conname=true;}if(part.isMimeType("text/html")&&!conname){bodytext.append((String)part.getContent());}elseif(part.isMimeType("text/plain")&&!conname){bodytext.append((String)part.getContent());}elseif(part.isMimeType("multipart/*")){Multipartmultipart=(Multipart)part.getContent();intcount=multipart.getCount();for(inti=0;i<count;i++){getMailContent(multipart.getBodyPart(i));}}elseif(part.isMimeType("message/rfc822")){getMailContent((Part)part.getContent());}}在html网页中<DIV><IMGborder=0src="cid:_Foxmail.0@E7716C4A-C215-4FE9-A822-E32DFEB04B00"></DIV><HRstyle="WIDTH:210px;HEIGHT:1px"align=leftcolor=#b5c4dfSIZE=1><DIV>这个图片显示不出来求大神指导?