Check out javamail from Sun. One of the examples in the demo folder is
sendhtml.java
Have a look at that. The important code is
msg.setDataHandler(
new DataHandler(new ByteArrayDataSource(sb.toString(), "text/html")));
Where sb in this case is a StringBuffer with the content of the message marked up in
HTML and msg
has the javamail definition
Message msg = new MimeMessage(session);
kev
-----Original Message-----
From: James Skehan [mailto:[EMAIL PROTECTED]]
If I want to send a mail from within a servlet, is there some way to specify
the content type of the email itself as html?
EOM
NOTICE - This message contains information intended only for the use of the addressee
named above. It may also be confidential and/or privileged. If you are not the
intended recipient of this message you are hereby notified that you must not
disseminate, copy or take any action in reliance on it. If you have received this
message in error please notify [EMAIL PROTECTED]
___________________________________________________________________________
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