我已经彻底服了hotmail邮箱,用javamail收发件时,总是有各种问题。可能是国外的邮箱安全做的太好了吧。今天又收到用户的反馈,发件失败了。在后台看了报如下的错。
com.sun.mail.smtp.SMTPSendFailedException: 554 5.2.0 STOREDRV.Submission.Exception:OutboundSpamException; Failed to process message due to a permanent exception with message WASCL UserAction verdict is not None. Actual verdict is Suspend, ShowTierUpgrade. OutboundSpamException: WASCL UserAction verdict is not None. Actual verdict is Suspend, ShowTierUpgrade. [Hostname=BYAPR07MB5318.namprd07.prod.outlook.com]
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2267)
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:2045)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1260)
at com.xhl.leads.leadsmail.sendmail.service.impl.SendMailServiceImpl.sendHtmlMailNoRecordCat(SendMailServiceImpl.java:434)
at com.xhl.leads.leadsmail.sendmail.service.impl.SendMailServiceImpl$$FastClassBySpringCGLIB$$581c17fa.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)
at
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
此时本宝宝内心是一万只草泥马在奔腾,苍天啊,大地啊,快来把hotmail邮箱带走吧。
于是我向用户要了他的邮箱和密码进行问题查找(因为其他hotmail邮箱都没有这个问题出现);我登上用户的hotmail邮箱给我自己发了一封邮件,发现仍然发不出去。刚才发送的邮件默认进入了草稿箱。于是去草稿箱点开这封邮件,上面有一行英文(忘记截图啦,大概的意思是邮箱被锁定,需要点击一个链接,然后进行验证。)。点击了英文里的链接,就跳转到验证页面,需要输入手机号和验证码等,验证通过后就好了。
其中涉及到以下几个页面,但是页面不全哈,见谅: