Is sending emails through javamail related to the network environment?
为情所困
为情所困 2017-06-15 09:21:46
0
2
1023

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
为情所困
为情所困

reply all(2)
某草草

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.

淡淡烟草味

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?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template