feat: 测试计划收不到邮件

This commit is contained in:
wenyann 2021-01-28 14:05:58 +08:00
parent 95ac318ee9
commit b9d4b94435
1 changed files with 2 additions and 2 deletions

View File

@ -53,14 +53,14 @@ public class MailService {
props.put("mail.smtp.starttls.enable", result);
props.put("mail.smtp.starttls.required", result);
break;
case "smtp.anon":
/* case "smtp.anon":
boolean isAnon = BooleanUtils.toBoolean(p.getParamValue());
if (isAnon) {
props.put("mail.smtp.auth", "false");
javaMailSender.setUsername(null);
javaMailSender.setPassword(null);
}
break;
break;*/
default:
break;
}