使用Tomcat8.5,JDK8,Spring5,Hibernate5.3.2,Struts2.5
非ssl25端口号被弃用了,改成ssl465端口加上 props.put("mail.smtp.ssl.enable", true);可以发送成功