title: sending multiple messages using clickatell gateway
body: <p>I used php server side to connect with clickatell messages service , i used the soap api technique to make the connection . it is working .but in my code , i can send just one message at the same time  , here is the code  :</p>
  
  <pre><code>    function actionSendSMS(){
         $msgModel = new Messages();
        $settModel = new Settings();
  
         $setRows = $settModel-&gt;findAll();
        $usr=$setRows[0]-&gt;clickatell_usr;
       $pwdRows = $settModel-&gt;findAll();
       $pwd=$pwdRows[0]-&gt;clickatell_pwd;
  
  
     $api_idRows = $settModel-&gt;findAll();
  
     $api_id=$api_idRows[0]-&gt;clickatell_api_id;
  
  
  
  
  
  
  
      $msgModel-&gt;findAllBySql("select * from messages where is_sent=0 and   
      send_date=".date("m/d/Y"));
  
        $client = new SoapClient("http://api.clickatell.com/soap/webservice.php?WSDL");
        $params = array('api_id' =&gt; $api_id,'user'=&gt; $usr,'password'=&gt; $pwd);
        $result = $client-&gt;auth($params['api_id'],$params['user'],$params['password']);
        $sessionID = substr($result,3);
        $callback=6;
       // echo $result."&lt;br/&gt;";
       // echo $sessionID;
  
        $params2 = array('session_id'=&gt;$sessionID, 'api_id' =&gt; $api_id,'user'=&gt; 
          $usr,'password'=&gt;$pwd,
        'to'=&gt;array('962xxxxxxx'), 'from'=&gt;"thetester",'text'=&gt;'this is a sample test  
             message','callback'=&gt;$callback);
        $result2 = $client-&gt;sendmsg($params2['session_id'],  
             $params['api_id'],$params['user'],$params['password'],
        $params2['to'],$params2['from'],$params2['text'],$params2['callback']);
        print_r( $result2)."&lt;br/&gt;";
  
  
  
  
      $apimsgid=  substr($result2[0],4);
  
     $rowsx=Messages::model()-&gt;findAllBySql("select * from messages where is_sent=0 and  
       send_date='".date("m/d/Y")."'");
  
  
  
        for($i=0;$i&lt;count($rowsx);$i++)
      {
  
  
  
        $rowsx[$i]-&gt;clickatell_id=$apimsgid;
  
       $rowsx[$i]-&gt;save();
  
         }
  
  
          //echo $apimsgid."&lt;br/&gt;";
  
  
  
            if (substr($result2[0], 0,3)==='ERR' &amp;&amp; (!(substr($result2[0], 0,2)==='ID'  
            )  ))
        {
            echo 'Connot Routing Message';
  
  
        }
  </code></pre>
  
  <p>.... now you see that this code will send one message at the same time , forget about the id , its for personal purpose , now this service i have to modify it , to send multiple messages at the same time , and i will give every message an unique ID , so now my problem is : is there any one knows if there is a service to send multiple sms at the same time ; </p>
  
  <p>as in my code i fill the information for one message ,but i need a service to send multiple sms , does any body can give me a link to this service , i made many searches but there is no answer i have found</p>