RSET
250 2.0.0 OK
DEBUG SMTP: MessagingException while sending, THROW:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <aaaaa@hotmail.com> Recipient not found. <http://x.co/irbounce>
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1862)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1118)
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:433)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:345)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340)
at com.missionsky.module.sysmanage.biz.EmailBusiness$EmailValiationTask.run(EmailBusiness.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <aaaaa@hotmail.com> Recipient not found. <http://x.co/irbounce>
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1715)
... 8 more
QUIT
221 2.0.0 sg2plibsmtp01-2.prod.sin2.secureserver.net bizsmtp closing connection
用java写了一个发送邮件服务,现在运行的时候报错,有大神知道如何解决吗?
------解决思路----------------------
具体要看你用的是什么邮箱了,用网页登陆邮箱,设置里面一般会有pop3 smtp之类的设置,不过这个设置是针对发信的账号,收件的账号好像不需要。
------解决思路----------------------
smtp serve
配置你自己的
props.setProperty ("mail.transport.protocol", "smtps");
props.setProperty ("mail.smtps.host", "smtpout.secureserver.net");
props.setProperty("mail.smtps.auth", "true");
props.setProperty("mail.smtps.port", "" + 465);