6:sina no mistakes, but QQ has errors. Solution Answer: Will smtp.qq.com personal mailbox love to smtp.exmail.qq.com Enterprise mailbox, recommend the host name of the Enterprise mail phase
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)
Answer: Change smtp.qq.com to 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
The above answer has the question, found the QQ official document
Http://service.exmail.qq.com/cgi-bin/help?id=28&no=1000585&subtype=1
If your e-mail client supports SSL, you can choose to use SSL in the settings.
Common Configuration parameters:
(We already support these protocols by default, and users do not have to manually open these servers and ports themselves)
POP3/SMTP protocol
Incoming mail server: pop.exmail.qq.com, using SSL, port number 995
Outgoing mail server: smtp.exmail.qq.com, using SSL, port number 465
Overseas users can use the following servers
Incoming mail server: hwpop.exmail.qq.com, using SSL, port number 995
Outgoing mail server: hwsmtp.exmail.qq.com, using SSL, port number 465
IMAP protocol
Incoming mail server: imap.exmail.qq.com, using SSL, port number 993
Outgoing mail server: smtp.exmail.qq.com, using SSL, port number 465
Overseas users can use the following servers
Incoming mail server: hwimap.exmail.qq.com, using SSL, port number 993
Outgoing mail server: hwsmtp.exmail.qq.com, using SSL, port number 465