当前位置:
首页 >
java 使用qq邮箱发送邮件报错 port: 465, response: 550 错误
发布时间:2024/8/1
43
豆豆
生活随笔
收集整理的这篇文章主要介绍了
java 使用qq邮箱发送邮件报错 port: 465, response: 550 错误
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
项目中使用到qq邮箱进行批量发送邮件的经常会报如下的错误:
javax.mail.MessagingException: Could not connect to SMTP host: smtp.qq.com, port: 465, response: 550at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1960)at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)at javax.mail.Service.connect(Service.java:295)at javax.mail.Service.connect(Service.java:176)或者这样的错误:
com.sun.mail.smtp.SMTPSendFailedException: 550 Mail content denied. http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=20022&&no=1000726或者:
javax.mail.MessagingException: Could not connect to SMTP host: smtp.qq.com, port: 465, response: -1大多是因为一段时间内发送邮件太频繁,导致被qq邮箱服务器拒绝连接了,使用定时任务或者多线程同时发送多封邮件经常会遇到这个问题
可尝试以下连接的解决方案:
https://blog.csdn.net/baidu_34211956/article/details/83544631
或者等待一段时间后再发送
腾讯官方帮助文档解释如下:
https://service.mail.qq.com/cgi-bin/help?subtype=1&&id=20022&&no=1000722
https://service.mail.qq.com/cgi-bin/help?subtype=1&&id=20022&&no=1000726
总结
以上是生活随笔为你收集整理的java 使用qq邮箱发送邮件报错 port: 465, response: 550 错误的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: J2ME 访问JAR和JAD文件中的属性
- 下一篇: web项目调用qq临时会话功能实现方法