I dont think you can add that as an hyperlink in your application.
mail servers would usually not have a static address for the attachments.
The attachment will be available to your application only when the user has successfully authenticated with the email server and your application has queried for the details of a selected email.
The attachment received will be a part of the Message object.
lets hope this helps you get started, i have left out the attachments part for you...
Part.getContent() is your friend when reading anything from an email's contents. Message implements Part.
Run the following recursive call on your Message and see what it returns:
You'll then see for each little part of your email how it is represented. The content could be a String, Multipart, or something else. It's one of those "something else"s you will need.
do i insert email attachment as string object into the database.
and treat as string object to select attachment to resultset
how to add link to text,after clicking text ,then download and save as the attachement.???
I have one important question: what do you want to do exactly? Read an attachment from an existing email, add an attachment to a new email, something else? Because it's not completely clear to me.