Multi to fields and multi numbers in to field separated by space.
Using this script you will be able send SMS to multiple recipients on GT2, GT-S, and LX800 series.
To: 39XXXXXX 39XXXXXX 39XXXXXX To: 39XXXXXX To: Etc. Text body
 Note: the numbers of βTo:β headers is not limited, use them if necessary.
 Note: the numbers of βTo:β headers is not limited, use them if necessary.
Save the script below into the path: /etc/sms/scripts/mailmultito
#!/bin/bash
# Sample script to allow multiple recipients in one message file.
# Define this script as a checkhandler.
outgoing="/var/spool/sms/outgoing"
recipients=`formail -zx "To:" < "$1"`
#count=`echo "$recipients" | wc -l`
count=`echo "$recipients" | wc -w`
if [ $count -gt 1 ]; then
  # Will need echo which accepts -n argument:
  ECHO=echo
  case `uname` in
    SunOS)
      ECHO=/usr/ucb/echo
      ;;
  esac
  messagebody=`sed -e '1,/^$/ d' < "$1"`
  headers=`formail -X "" -I "To:" -f < "$1"`
  for recipient in $recipients
  do
    file=`mktemp $outgoing/send_XXXXXX`
    $ECHO "To: $recipient" > $file
    if [ "x$headers" != "x" ]; then
      $ECHO "$headers" >> $file
    fi
    $ECHO "" >> $file
    $ECHO -n "$messagebody" >> $file
  done
  # Remove processed file:
  rm $1
  # Tell to smsd that checkhandler has spooled this message:
  exit 2
fi
exit 0
Use the command:
chmod 0777 /etc/sms/scripts/mailmultito
Open the file /etc/smsd.conf and in the βglobal sectionβ add this check handler:
checkhandler=/etc/sms/scripts/mailmulito