Ship SMS from PHP -Implementation in Magento & WordPress

by

SMS Gateway Integration in PHP:

At the moment there are other must haves for coordinating SMS door in PHP .Some representation are sending OTP to shopper for validation , sending request delicate components , confirmation attractions ,sending caution , offers be offering and so on

Ship SMS from PHP:

PHP Pattern Code Ship SMS:

<?php

//Your authentication key
$authKey = "YourAuthKey";

//More than one mobiles numbers separated by way of comma
$mobileNumber = "9999999";

//Sender ID,Whilst the usage of route4 sender identification must be 6 characters lengthy.
$senderId = "102234";

//Your message to ship, Upload URL encoding right here.
$message = urlencode("Take a look at message");

//Outline path 
$path = "default";
//Get ready you submit parameters
$postData = array(
    'authkey' => $authKey,
    'mobiles' => $mobileNumber,
    'message' => $message,
    'sender' => $senderId,
    'path' => $path
);

//API URL
$url="http://api.msg91.com/api/sendhttp.php";

// init the useful resource
$ch = curl_init();
curl_setopt_array($ch, array(
    CURLOPT_URL => $url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => $postData
    //,CURLOPT_FOLLOWLOCATION => true
));


//Forget about SSL certificates verification
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, zero);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, zero);


//get reaction
$output = curl_exec($ch);

//Print error if any
if(curl_errno($ch))


curl_close($ch);

echo $output;
?>

Enforcing sms in WordPress:

 

Implementation sms in Magento:

Share

Leave a Reply

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