I\'m trying to send an email in html format using JavaMail but it always seems to only display as a text email in Outlook.
Here is my code:
try { P
Change this To:
message.setContent(new String(sBuffer.toString().getBytes(), "iso-8859-1"), "text/html; charset=\"iso-8859-1\"");
The content char set need to be set, I don't see why the content itself. Should rather be:
message.setContent(sBuffer.toString(), "text/html;charset=iso-8859-1");