Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

attachment in EML file

$
0
0
I have aspose-total java licensed

I am struggling with the following:

I open a .eml file, and all of the embedded images aren't listed as attachments

When I attach the image, I can find it under mail.getAttachments(), however when embedding it, I don't see it under the mail.getAttachments()

I I am using aspose-email-3.6.0-java

I have tried it with different eml files, and it is consistently happening.

Code Snippet:
SharedByteArrayInputStream bis =
   new SharedByteArrayInputStream(bos.toByteArray());
   bis.reset();
MailMessage asposeMail = MailMessage.load(bis);
System.out.println("ATTACHMENTS:"+asposeMail.getAttachments().size());

I have attached a sample eml file as example.

Viewing all articles
Browse latest Browse all 1367

Trending Articles