File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes HTML and the Desktop Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "HTML and the Desktop Class" Watch "HTML and the Desktop Class" New topic

HTML and the Desktop Class

Alan Shiers
Ranch Hand

Joined: Sep 24, 2003
Posts: 237
Hi there,

As most are already familiar, often we get emails in our email clients that are strictly HTML as apposed to plain text. I wanted to use the Desktop class to send an email that also was marked up using HTML. Like so:

This didn't have the desired affect. When the new email client window opened the body field contained all of the markup text. I expected to just see "Hello There" in a purple font. Is there a way to have the email client load up and display the HTML properly?

Darryl Burke

Joined: May 03, 2008
Posts: 5115

You can use the JavaMail API with the content type "text/html"

luck, db
There are no new questions, but there may be new answers.
I agree. Here's the link:
subject: HTML and the Desktop Class
It's not a secret anymore!