背景
今天在做发邮件的功能,在我的电脑上本机测试发邮件是没有问题的,我使用的是javax.mail的jar包来实现的发邮件的功能,但是在服务器上测试该功能的时候出现了错误,错误如下:
javax.mail.MessagingException: Could not connect to SMTP host: smtphz.qiye.163.com, port: 465;
nested exception is:
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)
at

最低0.47元/天 解锁文章
730

被折叠的 条评论
为什么被折叠?



