how to ignore server cert error in javamail

https://stackoverflow.com/questions/4894954/how-to-ignore-server-cert-error-in-javamail

https://blog.csdn.net/weixin_43192102/article/details/103730668

 

重点:

properties.put("mail.smtp.ssl.checkserveridentity", "false");
properties.put("mail.smtp.ssl.trust", "*");

posted @ 2020-12-14 13:14  规格严格-功夫到家  阅读(42)  评论(0编辑  收藏  举报