Create a new entry in the »Timer« Archive and add the following. Afterwards configure the desired timer serial and save the changes.var script = "";script = "@@dataformat email" +"\r\n"; script += "@@an name@ourcompany.com" +"\r\n"; script += "@@subject Timer notification" +"\r\n"; script += "This is a test." +"\r\n"; createJob (script); | Command | Comment | | var script = ""; | The variables »script« are assigned in quotation marks to all commands in quotation marks . | | script = "@@dataformat email" +"\r\n"; | The DvISE command »@@dataformat email« is written in the variable »script«. This ensures that an eMail is created with a job creation. Furthermore »+"\r\n";« is used here and with the following commands. The parameter »\r« is the control character for the carriage return and »\n« for the line feed. | | | script += "@@to name@ourcompany.com" +"\r\n"; | The DvISE command »@@to name@ourcompany.com« is written in the variable »script«. In this case the recipient of this eMail is »name@ourcompany.com«. | | script += "@@subject Timer notification" +"\r\n"; | The DvISE command »@@subject Timer notification« is written in the variable »script«. Here the eMail subject is »Timer notification«. | | script += "This is a test." +"\r\n"; | Any text is written in the variabel »script« which here it is »This is a test.« lautet. | | createJob (script); | Via the funciton createJob() a new is created. The priorily declared variable which contains the corresponding job is in brackets. |
Note: Further information about »Send message with the same content (status notification) in intervals« is found hereKnowledgeBase Article Q-107.965. |