Receieving Emails with Attachments that are emails
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Stephen_Carlin
Posted On:   Friday, April 12, 2002 12:19 PM

Could someone please show me how to receive emails parts with the following content type: "message/rfc822". Below is what I am doing, but it does not work. Please show me how to fix or another method of how to do this. Thanks so much. Stephen else if ( part.isMimeType("message/rfc822") ) { System.out.println("Treating as message/rfc822"); MimeBodyPart mbp = (MimeBodyPart)part; System.out.println("Step 2"); for (int k=0; k MimeBodyPart messagepart = (MimeBodyPart)mpart.getBodyPart(k); System.out.println("Step 3"); FileNames += fileIO.saveFile(messagepart.getFileName(), messagepart.getInputStream()) + ";"   More>>

Could someone please show me how to receive emails parts with the following content type: "message/rfc822". Below is what I am doing, but it does not work. Please show me how to fix or another method of how to do this.

Thanks so much.
Stephen

			
else if ( part.isMimeType("message/rfc822") ) {
System.out.println("Treating as message/rfc822");
MimeBodyPart mbp = (MimeBodyPart)part;
System.out.println("Step 2");
for (int k=0; k
MimeBodyPart messagepart = (MimeBodyPart)mpart.getBodyPart(k);
System.out.println("Step 3");
FileNames += fileIO.saveFile(messagepart.getFileName(), messagepart.getInputStream()) + ";";
}
}
   <<Less

Re: Receieving Emails with Attachments that are emails

Posted By:   Laurent_Mihalkovic  
Posted On:   Saturday, April 13, 2002 03:35 PM

I seem to recall a similar question in the FAQ. Did you check there first?
About | Sitemap | Contact