Internet Direct (Indy) Version 9.0.2 Beta
|
procedure Connect(const ATimeout: Integer); override;
Connect calls the inherited Connect method, and on successful connection, sets ConnectionState to the value csNonAuthenticated. Connect calls SendCmd using the IMAP LOGIN command and the Username and Password values specified for the account. If the login is accepted by the IMAP server, Connect sets ConnectionState to the value csAuthenticated.
If an exception occurs in Connect, Connect calls Disconnect and re-raises the exception.