<< back to sysax.com Product page

11.1. Creating email messages

The mailcreate command is used to create an email message that can be sent to recepients using the mailsend command. The sender's name and email address should be specified in addition to the email's subject field and the email message that needs to be sent. The mailresult predefined status flag is set to the predefined constant success if the command completed successfully.

Exhibit 11.1. Syntax of command for creating email messages

mailcreate <sender name>, <sender email address>, <email subject>, <email message>;

Exhibit 11.2. Example for using the command for creating email messages

mailcreate "John Doe", "john@jdinc.com", "Script status", "Upload successful!"; #create email message