本例子整合下面的资源,邮箱服务器使用网易的163。
- contect me [[email protected]]
com.forjun.emaidemo W/System.err: com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp11,D8CowADXqSz+WiZZ_YeGHA--.41353S2 1495685886,please see http://mail.163.com/help/help_spam_16.htm?ip=110.19.183.192&hostid=smtp11&time=1495685886
com.forjun.emaidemo W/System.err: at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1515)
com.forjun.emaidemo W/System.err: at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1321)
com.forjun.emaidemo W/System.err: at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:637)
com.forjun.emaidemo W/System.err: at javax.mail.Transport.send0(Transport.java:189)
com.forjun.emaidemo W/System.err: at javax.mail.Transport.send(Transport.java:118)
com.forjun.emaidemo W/System.err: at com.forjun.email.SimpleMailSender.sendTextMail(SimpleMailSender.java:58)
com.forjun.emaidemo W/System.err: at preformSendEmail(MainActivity.java:70)
com.forjun.emaidemo W/System.err: at com.forjun.emaidemo.MainActivity$1.run(MainActivity.java:99)
com.forjun.emaidemo W/System.err: at java.lang.Thread.run(Thread.java:761)