wodPop3 ActiveX Control - Disconnected Event
    
 

Description

Fires when wodPOP3 component disconnects from the server.


Syntax

Private Sub object_Disconnected(ErrorCode, ErrorText)



The Disconnected Event syntax has these parts:

Part Description
object A wodPop3 object.
ErrorCode A Long value. Holds error number, if any.
ErrorText A String value. Text description of the error, if any.

Remarks

Disconnected event is fired when wodPop3 disconnects from the server, either by using Disconnect method, or because server closed the connection. If error occurred, ErrorCode and ErrorText arguments will provide information about the error.

Disconnected event can be fired also as a result of calling Connect method - if disconnection occurred because server was unavailable, bad login/password was supplied etc.

At this point wodPop3.Messages collection is not destroyed - you still have access to all downloaded messages from the previous session. They will be destroyed on next call to Connect method.