How to send SMS on php Textlocal.in api -


i have used code send otp on given number. can't send sms. how solve this....

php code

<?php require_once ('smartysettings.php'); require_once ('class/user.php'); require_once ('class/sms.php'); require_once ('class/randomnumber.php');  $number = $_post['mobnum'];      $result = @user::getuseridormobile($number);          if($result->database->rows = 1)         {             $otp = randomnumber(10);             $message = "your otp(one time password) '$otp'";             $sender = 'minveedu';              //print_r($otp); exit;             @sms::smssend($number,$message,$sender);         } ?> 

major class file send sms php code

    <?php         require_once ('textlocal.class.php');      class sms     {         var $sms;         var $textloc;           public function __construct()         {            $this->textloc = new textlocal('*******************', '****************');         }           public static function smssend($number,$message,$sender)         {             $ins = new self();              $numbers = array($number);              return $ins->textloc->sendsms($numbers,$message,$sender);         }     }  ?> 

how solve , send sms. please request.

they provide code in php send sms, can find logging account navigate help >> documentation >> here find copy , paste code section. go through , work


Comments

  1. APIs are the best functionality that enables the function of one system into another. Similarly, SMS API PHP is the way to send notifications, reminders, and alerts right from your own system.

    ReplyDelete

Post a Comment

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -