赞
踩
在狂神教学中,21年8月实测如果加上这段代码会报错Could not connect to SMTP host: smtp.qq.com, port: 465,将下面这段代码注释掉即可
// 注释或删除以下代码
MailSSLSocketFactory sf = new MailSSLSocketFactory();
sf.setTrustAllHosts(true);
prop.put("mail.smtp.ssl.enable", "true");
prop.put("mail.smtp.ssl.socketFactory", sf);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。