Set specific encoding for subject.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 4 Aug 2013 23:19:10 +0000 (01:19 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 4 Aug 2013 23:19:10 +0000 (01:19 +0200)
src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java

index 6e866c8..79068f4 100644 (file)
@@ -81,7 +81,7 @@ public class EmailAction implements Action {
                        /* create message. */
                        message.setFrom(new InternetAddress(sender));
                        message.setRecipient(RecipientType.TO, new InternetAddress(recipient));
-                       message.setSubject(output.summary());
+                       message.setSubject(output.summary(), "UTF-8");
 
                        /* create text and html parts. */
                        MimeMultipart multipart = new MimeMultipart();