About Java using NetEase server smtp.163.com send mail, connection failure problem

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.