Merge pull request #470 from clipperL/master

告警邮件固定使用 UTF-8 编码格式
master
许雪里 6 years ago committed by GitHub
commit b32e6fa1bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/MailUtil.java

@ -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