Am using Yii Framework. single and group sent SMS now working fine. but now I want to sent Batch messaging using Clickatell.
This is single SMS API's link
Yii::app()->sms->send(array('to'=>'407xxxxxxxx', 'message'=>'Hello world!'));
how to send Batch messaging?
pls help me.-:)
$messages = array();
$messages[] = array('to'=>'0001000','message'=>'Hello');
$messages[] = array('to'=>'0002000','message'=>'Hello');
foreach($messages as $message){
Yii::app()->sms->send(array('to'=>$message['to'], 'message'=>$message['message']));
}
Same message to all
$message = "Hello world!";
$to = array();
$to[] = '001000';
$to[] = '200100';
foreach($to as $number){
Yii::app()->sms->send(array('to'=>$number, 'message'=>$message));
}