Hunny Software Library Reference

SmtpClient.Quit Method 

Sends the QUIT command.

[Visual Basic]
Public Sub Quit()
[C#]
public void Quit();

Remarks

The QUIT command causes the server to perform any closing operations and to close the connection.

The server always responds with a 221 reply to the QUIT command.

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

SmtpClient Class | Hunny.Mail Namespace | QUIT command in the SMTP specification