新增示例
This commit is contained in:
parent
26c2e8a3e8
commit
4c640b5a6c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user