[root@localhost logs]# cat to_catalina.log
-----------------alarm start------------------------
--------------mail start---------------
-----------------alarm start------------------------
--------------mail start---------------
[2020-04-01 03:37:33.595] ERROR [com.base.util.MailUtils @348] - 发送邮件失败!
javax.mail.MessagingException: Could not connect to SMTP host: smtphz.qiye.163.com, port: 25
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1961) ~[mail-1.4.7.jar:1.4.7]
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654) ~[mail-1.4.7.jar:1.4.7]
at javax.mail.Service.connect(Service.java:295) ~[mail-1.4.7.jar:1.4.7]
at javax.mail.Service.connect(Service.java:176) ~[mail-1.4.7.jar:1.4.7]
at com.base.util.MailUtils.sendMail(MailUtils.java:344) [classes/:?]
at com.common.service.sysemail.SEmailService.sendEmail(SEmailService.java:109) [classes/:?]
at com.timer.SysEmailOneMinuteTask.doTask(SysEmailOneMinuteTask.java:74) [classes/:?]
at sun.reflect.GeneratedMethodAccessor670.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181]
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269) [spring-core-4.0.2.RELEASE.jar:4.0.2.RELEASE]
at