SMTP 220 Service Ready vs 535 Authentication Failed
SMTP 220 (Service Ready) is a 2xx Positive Completion response, while 535 (Authentication Failed) is a 5xx Permanent Negative response. 220 indicates that the SMTP server is ready to begin the mail transaction. This greeting is the first response a client receives upon connecting, and it typically includes the server's hostname and software identificati In contrast, 535 means that the authentication credentials provided are invalid. The username, password, or authentication mechanism was rejected by the server.
คำอธิบาย
The SMTP server is ready to begin the mail transaction. This greeting is the first response a client receives upon connecting, and it typically includes the server's hostname and software identification.
เมื่อคุณพบเห็น
Immediately after establishing a TCP connection to the mail server on port 25, 465, or 587. This is the server's welcome banner confirming it is ready to accept commands.
วิธีแก้ไข
No fix needed — this confirms a successful connection. If you do not receive this greeting, check that the server is running, the port is correct, and no firewall is blocking the connection.
คำอธิบาย
The authentication credentials provided are invalid. The username, password, or authentication mechanism was rejected by the server.
เมื่อคุณพบเห็น
After submitting incorrect credentials via the AUTH command. The username or password does not match any account on the server.
วิธีแก้ไข
Double-check your username and password. If using an app password (e.g., Gmail, Outlook), ensure it is current and has not been revoked. Also verify the correct SASL mechanism (PLAIN, LOGIN, etc.).
ความแตกต่างหลัก
220 is a 2xx Positive Completion response, while 535 is a 5xx Permanent Negative response.
SMTP 220: The SMTP server is ready to begin the mail transaction. This greeting is the first response a client receives upon connecting, and it typically includes the server's hostname and software identificati
SMTP 535: The authentication credentials provided are invalid. The username, password, or authentication mechanism was rejected by the server.
You encounter 220 when immediately after establishing a TCP connection to the mail server on port 25, 465, or 587. This is the server's welcome banner confirming it is ready to accept commands.
You encounter 535 when after submitting incorrect credentials via the AUTH command. The username or password does not match any account on the server.
ควรใช้อันไหนเมื่อไร
For 220 (Service Ready): No fix needed — this confirms a successful connection. If you do not receive this greeting, check that the server is running, the port is correct, and no firewall is blocking the connection. For 535 (Authentication Failed): Double-check your username and password. If using an app password (e.g., Gmail, Outlook), ensure it is current and has not been revoked. Also verify the correct SASL mechanism (PLAIN, LOGIN, etc.).