Hunny Software Library Reference

SmtpClient.ReplyCode Property

Gets the server's reply code.

[Visual Basic]
Public ReadOnly Property ReplyCode As Integer
[C#]
public int ReplyCode {get;}

Property Value

The numeric reply code from the server's response to the most recent command.

Remarks

Reply codes in SMTP are three-digit numbers. The first digit (the most significant digit) indicates success or failure; the second and third digits provide more detailed information about the error. Error codes are listed in RFC 2822.

See Also

SmtpClient Class | Hunny.Mail Namespace | Reply codes in the SMTP specification