Hi All,
I am having James 2.2.0 running. I need to open the attachment which I am
sending with the mail to James SMTP Server.
I am able to get the name of attachment file to be displayed on console by
creating an object of HasAttachment class as follows:
HasAttachment attachment = new HasAttachment();
Collection col = (Collection)attachment.match(mail);
System.out.println("Returned value from match method is "+col.toString());
String file = attachment.fileName1;
System.out.println("Attached file is: "+attachment.fileName1);
But I need to read the text present in the attachment. For this I need to
open the file.
Can anyone help me out in finding a way to open the file attachment sent
with the mail?
Thanks,
Gaurav Handa
cell +91-9868867223