admin 管理员组文章数量: 1184232
jdk17使用163邮箱发送邮件报如下错误
Could not connect to SMTP host: smtp.163, port: 465
No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
解决
更换jar包
dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>
</dependency>
更改为
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.2</version>
</dependency>
参考
本文标签: disabled Protocol Cipher inappropriate suites
版权声明:本文标题:No appropriate protocol (protocol is disabled or cipher suites are inappropriate) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1766570507a3471109.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论