I could not tell if your servlet is reading mail or sending mail, but in any
case, the javamail api has numerous examples in appendix b.  The first example
shows how to display a message to a client, including accessing body parts of
different mime types.

If you are trying to use a servlet to display an attachment to a client web
browser, then you must set the correct content type for the browser to know what
application to launch to view the attachment and then stream the data to the
client.

If this doesn't help, please add more details to your question.

Erich Izdepski











"This may contain information that is confidential or privileged. If you are not
the addressee indicated in this message (or responsible for delivery of this
message to such person), you should not  copy or deliver this message to
anyone or make any other use of the information set forth herein.  In such
case, you should destroy this  message and notify the sender by telephone
or e-mail."


------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to