Authored by LUOXC

refactor

@@ -28,7 +28,7 @@ public class MailSender { @@ -28,7 +28,7 @@ public class MailSender {
28 List<Part> attachments; 28 List<Part> attachments;
29 29
30 public static MailSender newMailSender() { 30 public static MailSender newMailSender() {
31 - return newMailSender("smtp.126.com", "lxc1317@126.com", "luoxiuchun").from("UFO System<lxc1317@126.com>"); 31 + return newMailSender("smtp.exmail.qq.com", "no-reply@yoho.cn", "Xlcm@9646").from("UFO System<no-reply@yoho.cn>");
32 } 32 }
33 33
34 public static MailSender newMailSender(String host, String user, String password) { 34 public static MailSender newMailSender(String host, String user, String password) {
@@ -137,7 +137,7 @@ public class MailSender { @@ -137,7 +137,7 @@ public class MailSender {
137 } 137 }
138 138
139 @Builder 139 @Builder
140 - private class Part { 140 + private static class Part {
141 String filename; 141 String filename;
142 String content; 142 String content;
143 String contentType; 143 String contentType;