Recently in writing a successful registration, the need for mail activation of the Web registration function, so the use of NetEase server smtp.163.com as a server host to send mail to registered users. In the process of debugging the old connection failed to encounter the exception (because it is done, forgot to copy the exception information, so no).
Throughout the debugging process, I even checked the configuration files several times, the code also looked at several times. There is no way to debug or not to come out. So now I'm going to say a few non-code key points for sending mail with NetEase's server smtp.163.com :
1. Register 163 mailbox, start the smtp.163.com server (register login, in the settings , according to its prompt to start the server)
2. 163 Mailbox In addition to the PC login password, there is a customer service side of the authorization password (this is the password required in the configuration file, I am always using the PC-side password, so always connection failure)
3. The user name in the configuration file is not the address of the mailbox, what does it mean?
For example: e-mail address: [email protected]
Then the user name in the configuration file should be: ASDFDDFD
This article is from the "maskedmen" blog, make sure to keep this source http://maskedmen.blog.51cto.com/8100866/1747031
About Java using NetEase server smtp.163.com send mail, connection failure problem