ComponentPro UltimateFtp

      Authenticate with a password and account

      Language Filter: AllSend comments on this topic to ComponentPro

      Some FTP servers require an "account name" in addition to the username and password:

      // Create a new class instance. 
      using (Ftp client = new Ftp())
      {
          // Connect to the FTP server. 
          client.Connect("myserver", 21);
      
          // Authenticate. 
          client.Authenticate("userName", "password", "account");
      
          // Do something here... 
          client.DownloadFile("/my remote file.dat", "my local file");
      }