AXSoft SMTPSock - Disconnect

Description

Disconnects from a server.

Type

Method

Syntax

object.Disconnect()

Return Type

None

Remarks

Once disconnected, the Disconnected event is fired. There are two kinds of disconnects - "soft disconnect" and "hard disconnect". A "soft disconnect" occurs when the transaction between the control and server goes smoothly and without interruption. A "hard disconnect" occurs in a case when the user wants to disconnect at a time when the connection might be transmitting data, such as when sending a large attachment. During a hard disconnect, the control will immediately disconnect from the server, without confirming with the server first (eg: sending the "quit" command).

See Also: Disconnected