Client Login

Contact Us

  • Call Now:+91-9426045500
  • Email
  • Address Info:Ahmedabad,India

Close Login


PHP Code

//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="SMSCountry"; //Your senderid
$messagetype="N"; //Type Of Your Message
$DReports="Y"; //Delivery Reports
$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,
"User=$user&passwd=$password&mobilenumber= $mobilenumbers&message=$message&sid=$senderid&mtype= $messagetype&DR=$DReports");
$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 "
echo $curlresponse; //echo "Message Sent Succesfully" ;