To be a good email citizen, you should actually send both text/plain and
text/html versions of the document with multipart/alternative as the header
type.  Creating the proper stream and encoding can be very tricky, which is
why I use JavaMail.  There's a javamail-interest group that has a bunch of
knowledgeable people dedicated to javamail.  Take a look at
http://java.sun.com/products/javamail
    (*Chris*)

----- Original Message -----
From: venakteswara Rao pasumarthi <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 01, 1999 5:54 AM
Subject: Sending mail content as HTML


> Hai,
>   I am sending the formatted text through a servlet to the user. I want to
know what are the mime types that I need to handle to see my text in html
format. Right now i am setting the Content-type, content-disposition and
Content.
>
>       pwpMime.put( (Object) "Content-Type", (Object) "text/html" );
>       pwpMime.put( (Object) "Content-Disposition", "");
>       pwpMime.put( (Object) "Content", mergePage("MailTemplate.html"));
>
>
>    But it sends a attachment as well. Can anybody tell me how to  overcome
this attachment file problem.
>
>
>
> Thanx in advance,
> venkat
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to