gpt4 book ai didi

java - 邮件发送错误 - SMTPAddressFailedException

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:49:50 24 4
gpt4 key购买 nike

我正在使用 linux 服务器在 Tomcat 上运行我的应用程序,它正在发送电子邮件,但出现以下错误

通过查看此日志我无法找到问题的确切位置,有什么建议吗???

15/12/2010 06:00:32 [MIS] ERROR [Thread-7] MailSendingThread.sendMail(155) | Could not send mail
org.springframework.mail.MailSendException: Failed messages: javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
; message exception details (1) are:
Failed message 1:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1294)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:635)
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:416)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:336)
at com.edc.common.service.MailSendingThread.sendMail(MailSendingThread.java:196)
at com.edc.common.service.MailSendingThread.sendMail(MailSendingThread.java:147)
at com.edc.common.service.MailSendingThread.run(MailSendingThread.java:126)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1145)
... 7 more
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

最佳答案

list

1.检查正在运行的主机邮件服务器。如果它在本地机器上运行,将主机地址设置为 0.0.0.0

2.如果是外部邮件服务器,请检查邮件凭据,即用户电子邮件和密码

关于java - 邮件发送错误 - SMTPAddressFailedException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4447709/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com