java qq 邮箱发送错误以及端口号
生活随笔
收集整理的這篇文章主要介紹了
java qq 邮箱发送错误以及端口号
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
6:sina沒錯誤,但qq有錯誤?求解答案:將smtp.qq.com個人郵箱愛 改為smtp.exmail.qq.com企業(yè)郵箱,建議用企業(yè)郵相的主機(jī)名
javax.mail.AuthenticationFailedException: 530 Error: A secure connection is requiered(such as ssl). More information at http://service.mail.qq.com/cgi-bin/help?id=28
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:809)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:752)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at javax.mail.Transport.send0(Transport.java:194)
at javax.mail.Transport.send(Transport.java:146)
at com.yd.email.Mail2.main(Mail2.java:44)
答案:將smtp.qq.com 改為smtp.exmail.qq.com
A secure connection is requiered(such as ssl). More information at http://service.mail.qq.com/cgi-bin/help?id=28
上面回答有問題,找到qq官方的文檔了
http://service.exmail.qq.com/cgi-bin/help?id=28&no=1000585&subtype=1
如果您的電子郵件客戶端支持SSL,可以在設(shè)置中選擇使用SSL。
?
通用配置參數(shù):
(我們已經(jīng)默認(rèn)都支持這些協(xié)議,用戶無需自己手動開啟這些服務(wù)器與端口)
POP3/SMTP協(xié)議
接收郵件服務(wù)器:pop.exmail.qq.com ,使用SSL,端口號995
發(fā)送郵件服務(wù)器:smtp.exmail.qq.com ,使用SSL,端口號465
海外用戶可使用以下服務(wù)器
接收郵件服務(wù)器:hwpop.exmail.qq.com ,使用SSL,端口號995
發(fā)送郵件服務(wù)器:hwsmtp.exmail.qq.com ,使用SSL,端口號465
?
IMAP協(xié)議
接收郵件服務(wù)器:imap.exmail.qq.com ?,使用SSL,端口號993
發(fā)送郵件服務(wù)器:smtp.exmail.qq.com ,使用SSL,端口號465
海外用戶可使用以下服務(wù)器
接收郵件服務(wù)器:hwimap.exmail.qq.com ,使用SSL,端口號993
發(fā)送郵件服務(wù)器:hwsmtp.exmail.qq.com ,使用SSL,端口號465
總結(jié)
以上是生活随笔為你收集整理的java qq 邮箱发送错误以及端口号的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: DOS启动盘制作
- 下一篇: java自动发送qq消息