告警邮件编码固定采用 UTF-8

v1.9.2
clipperl 6 years ago
parent 4f75bf336e
commit 11082cd1f5

@ -44,7 +44,7 @@ public class MailUtil {
}
email.setAuthenticator(new DefaultAuthenticator(XxlJobAdminConfig.getAdminConfig().getMailUsername(), XxlJobAdminConfig.getAdminConfig().getMailPassword()));
email.setCharset(Charset.defaultCharset().name());
email.setCharset("UTF-8");
email.setFrom(XxlJobAdminConfig.getAdminConfig().getMailUsername(), XxlJobAdminConfig.getAdminConfig().getMailSendNick());
email.addTo(toAddress);

Loading…
Cancel
Save