<?php
$message = "Happy Coding..A Test Message to Check API";$students = "9999999999" //your mobile number to test$msg = urlencode($message);
$url="http://www.bulksmsapps.com/api/apibulkv2.aspx?apikey=XXX-XXXX-XXXX-XXX-XXXXXXXX&sender=XXXXX&number=".$students."&message=".$msg;
$curl_handle=curl_init();curl_setopt($curl_handle,CURLOPT_URL,$url);curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1); curl_setopt($curl_handle, CURLOPT_FOLLOWLOCATION, false);set_time_limit(0);$response = curl_exec($curl_handle);err = curl_error($curl_handle);curl_close($curl_handle);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}?>
1.Install ssmtp as $ sudo apt-get update && sudo apt-get install ssmtp 2.Configure smtp file by editing the following file as, $ sudo gedit /etc/ssmtp/ssmtp.conf Update file with the following: AuthUser=Sendermail@gmail.com AuthPass=SenderPasswordforGMAIL FromLineOverride=YES mailhub=smtp.gmail.com:587 UseSTARTTLS=YES Now ssmtp.conf file should look like as the following one, AuthUser=Sendermail@gmail.com AuthPass=SenderPasswordforGMAIL # # Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=postmaster # The place where the mail goes. The actual machine name is required no # MX records are consulted. Commonly mailhosts are named mail.domain.com mailhub=smtp.gmail.com:587 # Where will the mail seem to come from? #rewriteDomain= # The full hostname hostname=tele-desktop118 # A...
It is very easy sms api php integration. Thanks for shearing.
ReplyDeleteGet ready SMS PHP API or Bulk SMS API PHP Gateway Integration Source Code/Script to Integrate into your website, software or web application. MsgClub PHP APIs helps to send verification code or OTP, Transactional & Promotional SMS from your PHP based application automatically.
ReplyDeleteThanks for sharing this valuable information.
ReplyDeleteBulk SMS Gateway API
This blog is so informative for providing a valuable information about Bulk SMS API.
ReplyDeleteAPI integration stands from Application Program Interface. It helps in the communication of two applications through SMS API that is integrated SMS.SMS API integration enables to connect to us easily for any solution and service easily. Saudi Bulk SMS service of SMS API has simplified the communication between two servers one can easily share any content or data through Integrated SMS
ReplyDeleteThis is helpful to know about SMS API Integration.
ReplyDeleteBranded SMS Marketing is one among the foremost reliable systems used lately to form outbound access to customers. The needs that information carries are mostly short, succinct and are likely to be read by the purchasers.
ReplyDeleteThe best promotional sms software
ReplyDeleteand SMS marketing software for lead generation. Get a free mass texting
software demo with customer ...
Hi,Thank you for the information blog. send personalized SMS to customers around the world get Detailed analytics and reports. Just start your Bulk SMS Campaign and own business with powerful solutions without free DLT registration.
ReplyDelete