Skip to content

Instantly share code, notes, and snippets.

@ratulcse10
Created July 26, 2017 16:45
Show Gist options
  • Save ratulcse10/15e58ccf376660da368bd20240dd54c8 to your computer and use it in GitHub Desktop.
Save ratulcse10/15e58ccf376660da368bd20240dd54c8 to your computer and use it in GitHub Desktop.
<?php
//Set OnnoromSMS Login Details
$userNAME = "";
$userPASSWORD= "";
//Set Sending Mobile Number and Message
$msg = "";
$sendingMobile = ""; // example: 01911225298
try
{
$soapClient = new SoapClient("https://api2.onnorokomSMS.com/sendSMS.asmx?wsdl"); $paramArray = array(
'userName'=>$userNAME,
'userPassword'=>$userPASSWORD, 'mobileNumber'=> $mobile, 'smsText'=>$msg, 'type'=>"TEXT",
'maskName'=> "InfancyIT", 'campaignName'=>'',
);
$value = $soapClient->__call("OneToOne", array($paramArray));
}
catch (Exception $e) {
echo $e;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment