Exception in thread "main" org.springframework.mail.MailSendException; nested exception de
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Exception in thread "main" org.springframework.mail.MailSendException; nested exception de相关的知识,希望对你有一定的参考价值。
是关于邮件发送的问题,在网上有找资料,说是包不兼容的问题,但是不知道怎么弄,大神,快点出来救救我吧。smtp用的qq的
Exception in thread "main" org.springframework.mail.MailSendException; nested exception details (1) are:
Failed message 1:
com.sun.mail.smtp.SMTPSendFailedException: 503 Error: need EHLO and AUTH first !
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1275)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:895)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:524)
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:388)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:332)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:328)
at cn.hnedu.util.MailSender.sendFileMail(MailSender.java:48)
at cn.hnedu.util.MailSender.main(MailSender.java:54)
以上是关于Exception in thread "main" org.springframework.mail.MailSendException; nested exception de的主要内容,如果未能解决你的问题,请参考以下文章
Exception in thread "main" java.lang.UnsupportedClassVersionError
Exception in thread "main" java.util.InputMismatchException
Exception in thread "main" java.lang.ClassCastException
Exception in thread "main" java.lang.UnsatisfiedLinkError:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1