Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HTML with my JavaMail  RSS feed

 
Niklas Junel
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried to send an email with Java, and it works fine. Now I want to include som html-code in my message. I thougth you just have to set som property to "text/html", but I can't figure out which one (or how). Please help me!!
 
Lewin Chan
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It could be

which conforms to the
MimeMessage.setContent(Object o, String type);
specified in the java mail api...
It should be that simple provided you've installed all the JAF stuff you need.
 
Niklas Junel
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank yoooooouuuuu!
 
Maki Jav
Ranch Hand
Posts: 449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please send me the whole code adilsec@yahoo.com
Thanks in advance
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you tried the JSTL mailer .... it's beautiful!!
give it a try..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!