Hi all,
I work for a mobile communication company and I would like develop an web interface for send bulk sms. I managed to create something but it has to bind and unbind to the SMSC the number of times i have the numbers. Is there a way I can just send at once??Below is what I developed
<?php
if(isset($_POST['submit'])){
$msisdn=$_POST['msisdn'];//phone numbers
$arr=explode(',',$msisdn);
$msg=$_POST['msg'];//message
for($i=0;$i<count($arr);$i++){
print $cmd='smppclient -a 192.168.5.12/16920 -u user -Q 1 -p pass -s 1 -S TEXT -D '. $arr[$i] .' -O 555 -T "' . $msg .'"';
$status=system($cmd,$output);
echo "<br> sent <br> ";
}
}
if(!isset($_POST['submit'])){
?>
<form name="form1" method="post" action="">
<table width="600" height="170" border="0">
<tr>
<td valign="top">Please Enter the Numbers Seperated by Comma(,) </td>
<td valign="top"><textarea name="msisdn" cols="40" rows="10" id="msisdn"></textarea></td>
</tr>
<tr>
<td valign="top">Enter the Message </td>
<td><textarea name="msg" cols="40" id="msg"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="submit" value="send"></td>
</tr>
</table>
</form>
<?php
}
?>