• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTML and the Desktop Class  RSS feed

 
Alan Shiers
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the JavaMail API with the content type "text/html"
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!