I have a bounced mail when i send it to an invalid e-mail id. The bounced mail then has an eml attachment which is nothing but a copy of my text in my mail when i sent it the first time. I need to get the name of this eml attachment, is it possible in javamail?
You can get attached file and it's name. Firstly get the Multipart of the mail and get the BodyParts. One of your mail's BodyParts will contain File attachment. Use getFileName() and getInputStream() on the bodypart object and save the file.
Best Regards, Narendranath
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)