Disconnect Method  
 

Disconnect from the mail server.

Syntax

object.Disconnect

Parameters

None.

Return Value

A value of zero is returned if the method succeeds. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

Remarks

The Disconnect method causes all messages that have marked for deletion to be removed by the server and the network connection is closed.

See Also

Connect Method