//Please Enter Your Details
$user="XXXXXX"; //your username
$password="XXXXXX"; //your password
$mobilenumbers="919XXXXXXXXX"; //enter Mobile numbers comma seperated
$message = "test messgae"; //enter Your Message
$senderid="DEMO"; //Your senderid
$messagetype="N"; //Type Of Your Message
$url="http://Domain name)/WebserviceSMS.aspx";
//domain name: Domain name Replace With Your Domain 
$message = urlencode($message);
$ch = curl_init();
if (!$ch){die("Couldn't initialize a cURL handle");}
$ret = curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);         
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt ($ch, CURLOPT_POSTFIELDS,
$ret = curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

//If you are behind proxy then please uncomment below line and provide your proxy ip with port.
// $ret = curl_setopt($ch, CURLOPT_PROXY, "PROXY IP ADDRESS:PORT");

$curlresponse = curl_exec($ch); // execute
    echo 'curl error : '. curl_error($ch);

if (empty($ret)) {
    // some kind of an error happened
    curl_close($ch); // close cURL handler
} else {
    $info = curl_getinfo($ch);
    curl_close($ch); // close cURL handler
    //echo "<br>";
    echo $curlresponse;    //echo "Message Sent Succesfully" ;