From: David ‘Bombe’ Roden Date: Sun, 4 Aug 2013 23:19:10 +0000 (+0200) Subject: Set specific encoding for subject. X-Git-Tag: v2~282 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e1aadd1bdb319fb62a006400862d13d669907f6e;p=rhynodge.git Set specific encoding for subject. --- diff --git a/src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java b/src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java index 6e866c8..79068f4 100644 --- a/src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java +++ b/src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java @@ -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();