Need to send Alarm Notification up to 10 Email Address And up to 10 phone Numbers for SMS

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

There is a limitation of 248 characters (includes commas and spaces) for the fields email to and 248 for email cc. I believe it’s the same for phone numbers as well. Depending on the number of characters in each email address, usually you will hit this limit after 9 or 10. I would advise creating a group email address that then forwards to the individual email addresses.