Hi,
Need to send Alarm Notification up to 10 Email Address & up to 10 phone Numbers for SMS
i have following script for emails it work only for up to 2 email Address if i add more than 2 in Email To section it doesnt work
ONALARM “Alm_test”,“GOTO ProcessTagTestAlarm”
ProcessTagTestAlarm:
A% = ALSTAT(“Alm_test”)
PRINT Time$;" Alm_test alarm “;A%
IF (A%=2) THEN
Rem Send eMail only when the alarm occurs
N$ = CHR$(10)+CHR$(13) : Rem CRLF
A$ = " Refrigeration Plant Priority 1 Alarm” + N$
A$ = A$ + “The current value of TagTest is " + STR$(Alm_test@) + N$
A$ = A$ + “The current time is " + TIME$
$EmailTo$ = Email_1@ +”;”+ Email_2@ +";"+ Email_3@ +";"+ Email_4@ +";"+ Email_5@ +";"+ Email_6@ +";"+ Email_7@ +";"+ Email_8@ +";"+ Email_9@
$EmailCC$ = Email_10@
$EmailSubject$ = " RP Priority 1 Alarm"
SENDMAIL $EmailTo$, $EmailCC$, $EmailSubject$,A$
ENDIF
END