tao.mo

监控应用节点,并且发送邮件

mt
2023年4月21日18:24:16
...@@ -19,8 +19,7 @@ public class EmailSenderService { ...@@ -19,8 +19,7 @@ public class EmailSenderService {
19 String smtpServer; 19 String smtpServer;
20 @Value("${smtp_account}") 20 @Value("${smtp_account}")
21 String smtpAccount; 21 String smtpAccount;
22 - @Value("${smtp_account_name}") 22 + String smtpAccountName = "联邦快递中国";
23 - String smtpAccountName;
24 @Value("${smtp_port}") 23 @Value("${smtp_port}")
25 Integer smtpPort; 24 Integer smtpPort;
26 25
......
...@@ -22,7 +22,7 @@ smtp_account=donotreply@fedex.com ...@@ -22,7 +22,7 @@ smtp_account=donotreply@fedex.com
22 #Password 22 #Password
23 smtp_pwd= 23 smtp_pwd=
24 #Account Name to send emailis_customer 24 #Account Name to send emailis_customer
25 -smtp_account_name=联邦快递中国 25 +#smtp_account_name=\u8054\u90A6\u5FEB\u9012\u4E2D\u56FD
26 #bcc 26 #bcc
27 email_bcc=donotreply@fedex.com 27 email_bcc=donotreply@fedex.com
28 #email link 28 #email link
......