i need a quick solution to this...
It seems you are new to
java ranch. Go through this link.
How to ask questions in Java Ranch? 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
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)