DeleteCompleted (ServerPath As String, Success As Boolean) DownloadCompleted (ServerPath As String, Success As Boolean) UploadCompleted (ServerPath As String, Success As Boolean) ListCompleted (ServerPath As String, Success As Boolean, Folders() As FTPEntry, Files() As FTPEntry) CommandCompleted (Command As String, Success As Boolean, ReplyCode As Int, ReplyString As String)
Downloads the file from the server. The DownloadCompleted event will be raised when download completes. ServerFilePath - Full path to the remote file. Unused - Unused boolean value (kept for signature compatibility). DeviceFolder / DeviceFile - The file will be downloaded to this path.
Initializes the object and set the subs that will handle the events. EventName - Subs prefix. Host - FTP host name or ip address. Port - FTP port number (usually 21). User / Password - User credentials.
List (ServerPathAsString)
Fetches the list of folders and files in the specified path. The ListCompleted event will be raised when the data is available.
PassiveModeAsBoolean
Gets or sets whether FTP is in passive mode. The default mode is active mode.
SendCommand (CommandAsString, ParametersAsString)
Sends an FTP command. The CommandCompleted event will be raised with the server reply. Should only be used with commands that return the reply in the command channel. Example: FTP.SendCommand("MKD", "/somefolder/newfolder")
Uploads a local file to the server. The UploadCompleted event will be raised when upload completes. DeviceFolder / DeviceFile - File to upload. Unused - Unused boolean value (kept for signature compatibility). ServerFilePath - The full path to the server file that will be created.
Initializes the object. Server - Server address. Host name or ip. Port - mail server port. Username / Password - Account credentials. EventName - Sets the subs that handle the events.
Send
Sends the message. The MessageSent will later be raised.
SenderAsString
Gets or sets the sender field. By default it is the same as the user name.
StartTLSModeAsBoolean
Gets or sets whether the connection should be done in StartTLS mode (for example Gmail smtp over port 587).
SubjectAsString
Gets or sets the message subject.
ToAsList
Gets or sets the list of "To" recipients. Example:SMTP.To.Add("email@example.com")
UseSSLAsBoolean
Gets or sets whether the connection should be done with SSL sockets (for example Gmail smtp over port 465).
Top