Internet Direct (Indy) Version 9.0.1 Beta
TIdFTP.Login
This method logs into the FTP server.

procedure Login(AUserName: String; APassword: String);
Parameters
AUserName: String
The user name to send to the server

APassword: String
The password to send to the server if the server requires it

Description
This method logs into the FTP server by sending the User Name and Password provided by the parameters. The Password may not be sent if the server indicates that it does not require it. You may also have to use the TIdFTP.Account to provide additional information in some cases.TIdFTP.Login is called by the TIdFTP.Connect method and you should call it after using the TIdFTP.ReInitialize method. This method will set the TIdFTP.LoginMsg property to reply send by the server.