diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/common/email/EmailServiceManager.java b/jeecg-boot-base-core/src/main/java/org/jeecg/common/email/EmailServiceManager.java index 2f3cf40c..7c6cec83 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/common/email/EmailServiceManager.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/common/email/EmailServiceManager.java @@ -78,10 +78,10 @@ public class EmailServiceManager { boolean flag = false; try { socket.connect(new InetSocketAddress(email.getEmailServerAddress(),email.getPort()),5000); - log.info("{}邮件服务连接测试成功",email.getEmailServerAddress()); + log.info("{}邮件服务连接测试成功",email.getName()); flag = true; } catch (IOException e) { - log.error("{}邮件服务连接测试失败,请检查邮件服务属性配置是否正确或邮件服务未开启,原因{}",email.getEmailServerAddress(),e.getMessage()); + log.error("{}邮件服务连接测试失败,请检查邮件服务属性配置是否正确或邮件服务未开启,原因{}",email.getName(),e.getMessage()); }finally { try { if(null != socket){