aspose file tools*
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "HTML and the Desktop Class" Watch "HTML and the Desktop Class" New topic
Author

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?

Alan
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4664
    
    5

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: http://aspose.com/file-tools
 
subject: HTML and the Desktop Class