<< back to sysax.com Product page

6.2. Multi line messages and attachments

The mailaddline command is used to add an additional line to the message body that was created using the mailcreate command. The mailresult predefined status flag is set to the predefined constant success if the command completed successfully.

The syntax is

Exhibit 6.3. table title

mailaddline <additonal message line>;

Some examples are

Exhibit 6.4. table title

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

mailaddline "additional message line"; #add an additional line to the email message

The mailaddfile command is used to attach a file to the message body that was created using the mailcreate command. The mailresult predefined status flag is set to the predefined constant success if the command completed successfully.

The syntax is

Exhibit 6.5. table title

mailaddfile <path to file to be attached>;

Some examples are

Exhibit 6.6. table title

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

mailaddfile "c:\\temp\\status.txt"; #attach a file to the email message