Pārlūkot izejas kodu

feat:“更改发送邮箱"

soobin 7 mēneši atpakaļ
vecāks
revīzija
ff32a450ad

+ 4 - 3
src/main/java/com/szwl/model/utils/MailUtil.java

@@ -11,8 +11,8 @@ import java.util.Properties;
  * 阿里云邮件发送
  */
 public class MailUtil {
-    private static final String ALIDM_SMTP_HOST = "smtp.mxhichina.com";
-//    private static final String ALIDM_SMTP_HOST = "smtp.qiye.aliyun.com";
+//    private static final String ALIDM_SMTP_HOST = "smtp.mxhichina.com";
+    private static final String ALIDM_SMTP_HOST = "smtp.qiye.aliyun.com";
 //    private static final String ALIDM_SMTP_HOST = "smtpdm.aliyun.com";
 
     private static final int ALIDM_SMTP_PORT = 25;// 或80
@@ -24,7 +24,8 @@ public class MailUtil {
     private String password;
 
     public MailUtil() {
-        this("AfterSalesInfo@sunzee.net", "Sunzee_135.-Sz246");
+//        this("AfterSalesInfo@sunzee.net", "Sunzee_135.-Sz246");
+        this("AfterSalesInfo@magiccandy.cn", "Sunzee_135.-Sz246");
 //        this("magic_candy_sunzee@sunzee.net", "Sz123456");
 //        this("magiccandy020@magiccandy.cn", "Sunzee020");
     }

+ 1 - 1
src/main/java/com/szwl/util/WechatSendUtil.java

@@ -83,7 +83,7 @@ public class WechatSendUtil {
         StringBuffer content = new StringBuffer();
         String str1 = " <b>Machine name: </b>";
         String str2 = "<br>" + " <b>Error message: </b>";
-        String str3 = "<br>" + " Time&Date: ";
+        String str3 = "<br>" + " <b>Time&Date: </b>";
         String timeByZoneID = TimezoneFmtUtil.getTimeByZoneID(zoneId);
         String str4 = "<br>" + "<br>" + "Dear customer:<br>";
         String str5 = " This is an automatic-sent mail to inform you that there is an error occurred on one of your " + machineTypeStr + " machines, please kindly check the details as above.<br>";