Method Login

Enables a connection to specified FTP server

procedure Login;

Applied to

TMFtp

Description

After called this method, the component will automatically connect to the specified server and send (get) necessary information to (from) server. Event OnLoggedIn will be fired when the login operation completed.

Example

with MFtp1 do
begin
   Server := 'ftp.microsoft.com';
   Username := 'anonymous';
   Password := 'guest@microsoft.com';
   Login;  // Enables an anonymous connection to ftp.microsoft.com
end;