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
I used the following code:
mimeBodyPart1.setDataHandler(new DataHandler(new ByteArrayDataSource(messageBody, "text/html; charset=utf-8"))); multiPart.addBodyPart(mimeBodyPart1); message.setContent(multiPart, "text/html; charset=utf-8");
Now, Outlook displays in html format.