AXSoft SMTPSock - Disconnect
Description |
Disconnects from a server. |
|
Type |
Method |
|
Syntax |
object.Disconnect() |
|
Return Type |
None |
|
Remarks |
Once disconnected, the Disconnected event is fired. While disconnecting from a server, the StatusChange event will return a "Closing" value. Once disconnected from a server and while the not connected to a another server, the StatusChange event will return a "Closed" value. To view the possible values of the StatusChange event, check out the StatusConstants constants page. Note that the Disconnect method is to do what is known as a "soft disconnect". Meaning that it sends data to the server that it is about to exit and waits for the server to respond. If the server does not respond within 5 seconds, then the connection closes. See Also: Disconnected, StatusChange, StatusConstants |