新增示例
This commit is contained in:
parent
26c2e8a3e8
commit
4c640b5a6c
@ -120,12 +120,17 @@ public class SimpleMailSenderUtil {
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
//这个类主要是设置邮件
|
//这个类主要是设置邮件
|
||||||
MailSenderInfo mailInfo = new MailSenderInfo();
|
MailSenderInfo mailInfo = new MailSenderInfo();
|
||||||
mailInfo.setMailServerHost("smtp.163.com");
|
// mailInfo.setMailServerHost("smtp.163.com");
|
||||||
mailInfo.setMailServerPort(25);
|
// mailInfo.setMailServerPort(25);
|
||||||
|
// mailInfo.setUserName("dpdbd001@163.com");
|
||||||
|
// mailInfo.setPassword("WAASUQNNVITVXDJS");
|
||||||
|
|
||||||
|
mailInfo.setMailServerHost("smtp.qq.com");
|
||||||
|
mailInfo.setMailServerPort(587);
|
||||||
mailInfo.setValidate(true);
|
mailInfo.setValidate(true);
|
||||||
mailInfo.setUserName("dpdbd001@163.com");
|
mailInfo.setUserName("450292408@qq.com");
|
||||||
mailInfo.setPassword("WAASUQNNVITVXDJS");
|
mailInfo.setPassword("bvtzzosemkuubiij");
|
||||||
mailInfo.setFromAddress("dpdbd001@163.com");
|
mailInfo.setFromAddress("450292408@qq.com");
|
||||||
mailInfo.setToAddress("450292408@qq.com");
|
mailInfo.setToAddress("450292408@qq.com");
|
||||||
mailInfo.setSubject("123");
|
mailInfo.setSubject("123");
|
||||||
mailInfo.setContent("123");
|
mailInfo.setContent("123");
|
||||||
|
Loading…
Reference in New Issue
Block a user