I've already tried the charset suggestion at this link
But the email shows up with the exact value of messageText... not rendering any of the HTML.
Here is my current code
import java.util.Properties;
import javax.mail.Address;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
String messageText = "<br/>THIS IS A TEST...<br/>!!!";
Properties props = new Properties();
props.setProperty("mail.transport.protocol", "smtp");
props.setProperty("mail.smtp.auth", "true");
props.setProperty("mail.smtp.ssl.enable", "true");
Session mailSession = Session.getInstance(props, null);
mailSession.setDebug(true);
Transport transport = mailSession.getTransport();
MimeMessage message = new MimeMessage(mailSession);
message.setSubject(messageSubject);
message.setContent(messageText, "text/html; charset=utf-8");
Address[] fromAddress = InternetAddress.parse ( "pleasedonotreplymessage@[removed]" ) ;
message.addFrom( fromAddress );
message.addRecipient(Message.RecipientType.TO, new InternetAddress(toAddress));
transport.connect("[removed]", "", "");
transport.sendMessage(message, message.getRecipients(Message.RecipientType.TO));
transport.close();
I would prefer not to have to install other parties tools.. which would require a complete rework of my current code.