Just use MimeMessage.setDataHandler() method instead of .setText() method &
write your own implementation of javax.activation.DataSource interface to
read the data byte by byte. this way you can read the html contents byte
wise and send it without sending it as an attachment
thanx
Padmanava
----- Original Message -----
From: Charles Angevine <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 14, 2001 1:25 AM
Subject: Re: How to E-Mail HTML and associated images?
> There is a short course called Fundamentals of the JavaMail API that
> discusses attachments. Look at
> http://developer.java.sun.com/developer/onlineTraining/JavaMail/index.html
>
>
> ----- Original Message -----
> From: Michael Vincent <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 13, 2001 9:51 AM
> Subject: How to E-Mail HTML and associated images?
>
>
> > I would like to e-mail an HTML page and the associated images. I have
> > looked at the javax.mail.* package and this only seems to allow the
> sending
> > of plain text messages with no attachments. I thought that I would
either
> > send the e-mail as HTML, or send as a regular e-mail and attach the HTML
> > page. Can anyone suggest a possible plan of attack?
> >
> > Thanks,
> >
> > -mike.
> >
> >
>
___________________________________________________________________________
> > 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
>
___________________________________________________________________________
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