File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes extract attachment from email... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "extract attachment from email..." Watch "extract attachment from email..." New topic

extract attachment from email...

sin sai

Joined: Jun 19, 2002
Posts: 10
with java, how do i extract attachment from emails? what sun package(s) are needed? 3rd party packages? code sample would be appreciated.
thank you...

sin sai
raimondas zemaitis
Ranch Hand

Joined: Feb 23, 2001
Posts: 104
you need Java Mail API, look in Sun's site
Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
Even O'Reilly has some example code for multi-part messages. Navigate from

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
I agree. Here's the link:
subject: extract attachment from email...
It's not a secret anymore!