Send mail as html

This commit is contained in:
Xephi59 2015-07-14 04:34:31 +02:00
parent 16f5e1f91e
commit 7f7b713e67

View File

@ -75,7 +75,7 @@ public class SendMailSSL {
message.setSubject(subject);
message.setSentDate(new Date());
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setText(mailText);
messageBodyPart.setContent(mailText, "text/html");
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);