MAILTO Send an e-mail message via default e-mail client
| << Click to Display Table of Contents >> Navigation: Robo-FTP User's Guide > Script Programming > Script Commands > All Script Commands > MAILTO Send an e-mail message via default e-mail client | 
| Syntax: | MAILTO | [ to name ] [ subject ] [ body ] | 
| Arguments: | [ to name] | Variable or string defining the e-mail address of recipient; to enter the destination e-mail address within your e-mail client, specify an empty string or issue MAILTO with no arguments | 
| 
 | [ subject ] | Variable or string defining the subject line for the message; to enter a subject line within your e-mail client, specify an empty string or issue MAILTO with only the [ to name ] argument | 
| 
 | [ body ] | Variable or string defining the body of the message; to enter the body within your e-mail client, specify an empty string or issue MAILTO with only the [ to name ] and [ subject ] arguments | 
This command may be used obtain an e-mail address, subject line, and/or message body under script control and then invoke the external system default e-mail client. The client is launched and Robo-FTP script continues.
The arguments are optional but if used must be in order shown above. Supply empty string(s) as necessary if you wish to supply a subject, for example, without an e-mail address.
Line breaks may be embedded in [ body ] with the ‘\n’ character sequence. Not all e-mail clients, however, recognize line breaks and may substitute a space character.
Consider the following example where the default e-mail client is launched with an e-mail address, subject line, and message body.
SET email = "[email protected]"
SET subj = "Thanks for your order!"
SET body = "We appreciate your business."
MAILTO email subj body
Consider the following example where only a multi-line message body is specified.
SET body = "Your password is:\n\n4ikk3433"
MAILTO "" "" body
Related command(s): CREATEMAIL, SENDMAIL, GETMAIL
See also: Sending and Receiving E-mail, Sending SMS text messages, Running Robo-FTP with Prompting