java - 使用 java 的电子邮件通知我可能会遇到错误,因为无法连接到 SMTP 主机 : RELAY. MY.COM,端口 : 25, 响应:421

标签 java jakarta-ee struct

enter image description here这个错误偶尔会发生,我找不到这个问题的根本原因。 请帮助我解决这个问题。

最佳答案

SMTP 状态代码

4.2.1

The Mail transfer service is unavailable because of a transient event. SMTP reply

421 can be caused by many things but generally indicates that the mail server which returns this status code is currently unavailable but may be available later.

For example, the server administrator may have stopped the mail service to troubleshoot a problem, or the mail server is right in the middle of rebooting, or the mail server is currently processing too many incoming messages or incoming requests, etc... Note : “Mail Server” in this case can be any of the mail servers on the message’s route – the sending server (your server), the ISP SMTP server, or the recipient’s mail server.

Clearly, if you repeatedly receive an SMTP status 421 then the problem is no longer of a transient nature and you need to investigate or inform the relevant network administrator, ISP tech support, or the recipient.

SMTP Response 421 can also be received as a result of your message server sending an email where the total number of TO, CC, and BCC users results in a number of simultaneous SMTP connections that is in excess of the number of connections your ISP or SMTP service allows. A typical error message for this situation would be : “421 Too many concurrent SMTP connections from this IP address; please try again later”. Typically, when this happens your server will have sent some of the messages (note that for all servers, each email sent by a user always gets broken down into individual separate emails to each of the recipients in the TO, CC, and BC fields), and will automatically retry a little later to send the remaining messages.

来源http://wiki.mattrude.com/SMTP_Status_Codes

关于java - 使用 java 的电子邮件通知我可能会遇到错误,因为无法连接到 SMTP 主机 : RELAY. MY.COM,端口 : 25, 响应:421,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24330874/

相关文章:

java-在输入的一组数字中查找最小值/最大值

java - 即使在使用双缓冲后小程序也会闪烁

MySQL Java 通过不同字段获取对象

java - JBoss 7 : EJB over HTTP

c - 全局结构内存错误

Java 清理 Arraylist 记录的建议

javascript - Java Nashhorn 换行

java - 需要大批量应用的设计

c - 在结构中分配和访问指向字符串的指针

c- 使用结构指针将字符串扫描到结构中