我在家里的长城宽带尝试使用javamail去发送邮件。一直报错554、
但是我的电脑连接了手机热点就可以发送成功。
在公司的联通网络也可以发送成功。
难道javamail能否成功跟本地的忘了环境有关吗?
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
http://mail.163.com/help/help...
•554 DT:SPM 发送的邮件内容包含了未被许可的信息,或被系统识别为垃圾邮件。请检查是否有用户发送病毒或者垃圾邮件
楼主代码能否公示出来?