代码很简单,一个邮箱帐号,一天内发比较少的邮件是可以的,发送量大时,就会报错,如下:
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:1138)
at org.apache.commons.mail.Email.send(Email.java:1163)
at com.ibtscm.utils.MailUtil.send(MailUtil.java:24)
at com.ibtscm.mail.SimpleMailTest.main(SimpleMailTest.java:12)
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 550 RP:TRC smtp14,EsCowECJ3WhnEINTZ93LAA--.97S2 1401098345 http://mail.163.com/help/help_spam_16.htm?ip=113.88.173.141&hostid=smtp14&time=1401098345
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1668)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1207)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:735)
at javax.mail.Transport.send0(Transport.java:191)
at javax.mail.Transport.send(Transport.java:120)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1128)
... 3 more