在过去的一周里,我的电子邮件服务项目一直运行得很好,但今天当我尝试在Eclipse中运行它时,它抛出了一个:
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Got bad greeting from SMTP host: mail.test.com, port: 25, response: 554 mail.test.com
. Failed messages: javax.mail.MessagingException: Got bad greeting from SMTP host: mail.test.com, port: 25, response: 554 mail.test.com
突然发生这种情况的原因是什么?现在,我的SpringBoot主类不会结束,我必须手动终止它
SMTP错误554属于一般性错误。
这通常意味着远程主机决定不接受您试图发送的消息(可能是因为您的发送服务器被列入黑名单(,并且拒绝是永久性的。
您需要与接收服务器(mail.test.com(上的管理员交谈,以了解您的邮件被拒绝的原因。