diff --git a/cloud-common/src/main/java/com/cm/common/utils/email/SimpleMailSenderUtil.java b/cloud-common/src/main/java/com/cm/common/utils/email/SimpleMailSenderUtil.java index 1603ef1..8d3454b 100644 --- a/cloud-common/src/main/java/com/cm/common/utils/email/SimpleMailSenderUtil.java +++ b/cloud-common/src/main/java/com/cm/common/utils/email/SimpleMailSenderUtil.java @@ -120,12 +120,17 @@ public class SimpleMailSenderUtil { public static void main(String[] args) throws Exception { //这个类主要是设置邮件 MailSenderInfo mailInfo = new MailSenderInfo(); - mailInfo.setMailServerHost("smtp.163.com"); - mailInfo.setMailServerPort(25); +// mailInfo.setMailServerHost("smtp.163.com"); +// mailInfo.setMailServerPort(25); +// mailInfo.setUserName("dpdbd001@163.com"); +// mailInfo.setPassword("WAASUQNNVITVXDJS"); + + mailInfo.setMailServerHost("smtp.qq.com"); + mailInfo.setMailServerPort(587); mailInfo.setValidate(true); - mailInfo.setUserName("dpdbd001@163.com"); - mailInfo.setPassword("WAASUQNNVITVXDJS"); - mailInfo.setFromAddress("dpdbd001@163.com"); + mailInfo.setUserName("450292408@qq.com"); + mailInfo.setPassword("bvtzzosemkuubiij"); + mailInfo.setFromAddress("450292408@qq.com"); mailInfo.setToAddress("450292408@qq.com"); mailInfo.setSubject("123"); mailInfo.setContent("123");