Internet Direct (Indy) Version 9.0.2 Beta
TIdPOP3.Connect
Opens a POP3 client connection.

procedure Connect(const ATimeout: Integer); override;
Parameters
const ATimeout: Integer = IdTimeoutDefault
Number of milliseconds to wait for a valid connection. Default value is IdTimeoutDefault.

Description
Connect is a procedure used to establish a connection to the POP3 server with the address and port number specified in Host and Port. Connect calls the inherited Connect method and waits for a valid connection for ATimeout milliseconds prior to sending account information for the connection. Username and Password must be assigned prior to calling the Connect method.

If an exception occurs during connection or authentication, the socket will Disconnect and the exception will be re-raised.

Use Disconnect to close the POP3 client connection.