Fixed address encoding

This commit is contained in:
M66B 2019-02-17 10:47:50 +00:00
parent b0492af20e
commit 6ba3ee6d9f
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ public class MessageHelper {
System.setProperty("mail.mime.base64.ignoreerrors", "true");
System.setProperty("mail.mime.decodefilename", "true");
System.setProperty("mail.mime.encodefilename", "true");
System.setProperty("mail.mime.allowutf8", "true"); // InternetAddress, MimeBodyPart, MimeUtility
System.setProperty("mail.mime.allowutf8", "false"); // InternetAddress, MimeBodyPart, MimeUtility
// https://docs.oracle.com/javaee/6/api/javax/mail/internet/MimeMultipart.html
System.setProperty("mail.mime.multipart.ignoremissingboundaryparameter", "true"); // javax.mail.internet.ParseException: In parameter list
@ -167,7 +167,7 @@ public class MessageHelper {
props.put("mail.smtp.timeout", Integer.toString(NETWORK_TIMEOUT));
// MIME
props.put("mail.mime.allowutf8", "true"); // SMTPTransport, MimeMessage
props.put("mail.mime.allowutf8", "false"); // SMTPTransport, MimeMessage
props.put("mail.mime.address.strict", "false");
if (false) {