How to Use Bulk SMS API PHP | Bulk Message API

By | February 27, 2014

Bulk SMS API PHP


Bulk SMS is not a new concept and these days use of Bulk SMS is increasing. In these days Schools, Colleges, Banks and other institutions depends on Bulk Messages for rotating their information to their clients or students or customers. Use of bulk sms is more because of its cheap rate and prompt response.

Today this article is all about that how to use bulk sms API in php. How we can use the bulk sms api and send the messages to our clients or customer numbers through the PHP.

As every SMS provider is having the API and let me tell your it is very easy to use it and send the messages.

Things you need

  • Working SMS Plan
  • SMS API

Below code is easy to use code and it is not based on classes. We will have our next article of how to send bulk sms using PHP Classes.

<?php
$username="username";
$password="password";
$Senderid="Id";
$message="Testing this";
$mobileno="your mobile no";
$type="0";
$dlr="1";

$url ="http://tsms.simplyitsols.com/bulksms/bulksms?username=$username&password=$password&type=$type&dlr=$dlr&destination=$mobileno&source=$Senderid&message=$message";

$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output=curl_exec($ch);
curl_close($ch);

echo $output;
?>

Above code will output the response message of the API.

Thank you for reading the how to use bulk sms api php. You can use it and let me know if you find any difficulty please comment so that we will update you and provide the best solution.

~~~~ Happy Coding ~~~~

Leave a Reply

Your email address will not be published. Required fields are marked *