info.mailtraq.com > Management > Script Functions A-Z > CallScript() CallScript()Runs a predefined Mailtraq script file. The script file must be located in the \database\scripts folder and must have the standard script extension of '.mtq'. The called script is executed before control returns to the main script.
Note
Although a script may call any number of other scripts individually, nested scripts (where script_a calls script_b then script_b calls script_c and so on) are limited to a depth of eight. Thereafter, further nested calls fail.
CallScript( script )
- script
- A string consisting of the filename (minus its .mtq extension) of the script to be run
//Example of usage
CallScript("my_script") |