mail收发邮箱ssl协议时用到,finalStringSSL_FACTORY="javax.net.ssl.SSLSocketFactory"; try{ //1.设置连接信息,生成一个Session Propertiesprops=newProperties(); // props.setProperty("mail.smtp.host","smtp.163.com"); // props.setProperty("mail.smtp.auth","true");