I tried to use javamail to send emails on the Great Wall Broadband at home. It keeps reporting error 554,
, but my computer can be sent successfully when connected to the mobile hotspot.
It can also be sent successfully on the company's China Unicom network.
Is the success of javamail related to the local forgetting environment?
Exception in thread "main" org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.163.com:25
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1410)
at org.apache.commons.mail.Email.send(Email.java:1437)
at com.lh.util.MailUtil.main(MailUtil.java:23)
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp11,D8CowAA3Q0q3SUFZqtJ2Lw--.65418S2 1497450936,please see http://mail.163.com/help/help_spam_16.htm?ip=115.239.226.78&hostid=smtp11&time=1497450936
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2108)
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1889)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1120)
at javax.mail.Transport.send0(Transport.java:195)
at javax.mail.Transport.send(Transport.java:124)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1400)
... 2 more
某草草2017-06-15 09:23:46
Open the command line (cmd) on the debugging computer and enter telnet smtp.163.com 25
to see if there is any response.
Many non-backbone network access providers block some uncommon ports.
淡淡烟草味2017-06-15 09:23:46
http://mail.163.com/help/help...
•554 DT: The content of the email sent by SPM contains unauthorized information or is identified as spam by the system. Please check if any user sends viruses or spam
Can the poster’s code be made public?