Sending and Receiving E-mail in Script Files

<< Click to Display Table of Contents >>

Navigation:  Robo-FTP User's Guide > Script Programming > Select Topics in Script Programming >

Sending and Receiving E-mail in Script Files

 

Robo-FTP is e-mail enabled. E-mail messages are composed and sent within a script using the EMAIL script command. E-mail messages are received using the GETMAIL command.

 

Robo-FTP also supports the MAILTO command where an e-mail message may be formatted under script control and then submitted to the system default e-mail client to be sent manually.

 

The remainder of this section deals with the EMAIL and GETMAIL commands.

 

For Robo-FTP e-mail to work, the PC must have an established network connection. To send e-mail, the PC must have access to an SMTP server. To receive e-mail, the PC must have access to a POP3 server. In both cases, the hostname or IP address and any appropriate user ID and password must be known or configured when the script runs.

 

These commands work independently of any e-mail client that you may have installed on your PC. When receiving messages, Robo-FTP can simply get the next message available on the mail server or search the subject line of all pending messages for a specific string and only get this one message.

 

Messages received may be viewed and/or saved to a file. Optionally, messages may be left on the mail server. The subject line of the message is saved in a script variable for additional processing during script execution if necessary.

 

Listed below are some examples of how e-mail functionality may be utilized in Robo-FTP scripts:

 

ØSend a message to a system administrator if an FTP site outage is detected
ØSend a message to acknowledge a successful file download (or upload)
ØWait for an e-mail message to be received before initiating a file transfer
ØE-mail a file as soon as it appears in a local folder (or in an FTP site directory)
ØSend an e-mail from anywhere to initiate a file transfer
ØSend an e-mail from anywhere to instruct Robo-FTP to execute a specific script file

 

 

Refer to EMAIL and GETMAIL for more details.

See MAILTO for the creation and submission of e-mail messages to be sent manually.

 

Related command(s): EMAIL, GETMAIL, MAILTO