Email Sending failure: Sending the email to the following server failed: smtp.qiye.163.com: 25,
[Email Sending Error]: Sending the email to the following server failed: smtp.qiye.163.com: 25 ,{}
Org. apache. commons. mail. EmailException: Sending the email to the following server failed: smtp.qiye.163.com: 25
At org. apache. commons. mail. Email. sendMimeMessage (Email. java: 1421 )~ [Commons-email-1.4.jar: 1.4]
At org. apache. commons. mail. Email. send (Email. java: 1448 )~ [Commons-email-1.4.jar: 1.4]
There are three common reasons for collecting the experience of many online experts:
1. It is a port error, but my port does not write the sendemail. setHostName ("smtp.163.com ");
2. I did not activate the service for verification, but it was successfully opened last week.
3. The password is incorrect (or the authorization password ). I have logged on to the 163 mailbox to check it. No problem!
The above three cannot be solved, and there are no clear prompts (code and other error codes ).
Step-by-step analysis,
mail.hostName,
mail.from.user,
mail.from.pwd,
Mail. to. user
Only the recipient part can have an exception.
Last question:One recipient's email address is invalid. Delete it.
For other troubleshooting methods, check whether HtmlEmail provides the error Code classification. Continue to explore!