permaculture playing cards*
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 Android Security Essentials Live Lessons this week in the Android 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: 4523

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
Similar Threads
Need help. Can a servlet do this?
tomcat can't find index.jsp
Servlets example
jsp+javamail. how to get the same session with url connection?
Cannot resolve symbol