SMS API

$authkey = 'key';
$sender_id = 'senderid';
$DLT_TE_ID = dltid;
$country_code = '0';
$message_content = 'We have New Stock Suggestion - Login to the portal https://spacedot.co.in/ and get more details';
$mobile_number = '919790464324';
$template_name = 'templatename';

$url = 'http://control.yourbulksms.com/api/sendhttp.php?authkey=' . $authkey . '&mobiles=' . $mobile_number . '&sender=' . $sender_id . '&route=2&country=' . $country_code . '&DLT_TE_ID=' . $DLT_TE_ID . '&message=' . urlencode($template_name);

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo $response = curl_exec($ch);
curl_close($ch);

Did you find this article useful?