Skip to content

Commit

Permalink
fix: 发送中文邮件乱码.
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Aug 31, 2016
1 parent 79ae4b8 commit 30fd72d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public boolean send(String to, String subject, String html) {
email.setSubject(subject);
email.setHtmlMsg(html);
email.addTo(to);
email.send();
email.buildMimeMessage();
email.sendMimeMessage();
return true;
} catch (Throwable e) {
log.info("send email fail", e);
Expand Down

0 comments on commit 30fd72d

Please sign in to comment.