I found this method not sure if it works for all CSS primitives
By setting the header property "Content-Type" to "text / html"
mimeMessage.setHeader("Content-Type", "text/html");
now i can do something like
mimeMessage.setHeader("Content-Type", "text/html"); mimeMessage.setText ("`<html><body><h1 style =\"color:blue;\">My first Header<h1></body></html>`")
Hello
Balint Sep 04 '17 at 20:35 2017-09-04 20:35
source share