Ive been sending plaintest email from Java no problem but Im now trying to send a html one as follows:
MimeMessage message = new MimeMessage(Email.ge
You can try the following:
message.setText(msg, "utf-8", "html");
or
message.setContent(msg, "text/html; charset=utf-8");
Avoid the setText method, you only need setContent.
It should be like this:
MimeMessage message = new MimeMessage(Email.getSession());
message.setFrom(new InternetAddress("support@jthink.net"));
message.addRecipient(Message.RecipientType.TO, new InternetAddress(to, true));
message.setSubject(subject);
message.setContent(msg, "text/html; charset=utf-8");
message.saveChanges();
Transport.send(message);
Hope it helps you!