I got some mails containg multiple parts. I got number of
parts printed by (Multipart)mp.getCount(). and it displays
more than one parts.
Now interestingly when i check the types of two parts one
is text/plain and other is text/html. But both parts contains
same text whenever i printed any of part both resulted in same
output but one in plain text while other in html format
colored output. I am wondering how its possible there are two parts
but both with same text. Then how can i guess that part
is a attachment or not....


----- Original Message -----
From: "Erich Izdepski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 10, 2000 10:34 PM
Subject: Re: using java mail


>
>
> 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.
>

------------------------------------------------------------------------------
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