Adds UTF-8 charset to emails

This commit is contained in:
Ariel D. Moya Sequeira 2016-01-08 10:07:12 -06:00 committed by Graham Triggs
parent 8660ed91eb
commit 950aecf7ab

View file

@ -56,7 +56,7 @@ public class MailUtil {
msg.setSubject( subject ); msg.setSubject( subject );
// add the multipart to the message // add the multipart to the message
msg.setContent(messageText,"text/html"); msg.setContent(messageText,"text/html; charset=UTF-8");
// set the Date: header // set the Date: header
msg.setSentDate( new Date() ); msg.setSentDate( new Date() );