| Server IP : 172.64.80.1 / Your IP : 172.70.50.63 Web Server : Apache System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64 User : federalpolyede.edu.ng_idh35skikv ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/federalpolyede.edu.ng/httpdocs/ |
Upload File : |
<?php
$message = 'ajbsakdbabdkj';
$senderid = 'adePaf';
$to = '08034496359,07061230735,08088662628'; //each of the numbers are separated with a comma
$token = 'DdyxDgGoJURC0W88O73e2e5Ymts6S6LlRtuWVdAhnk8oJ0WQep7sXMBBTutLdlbG6fLv3QgRitauRuUnelwjYP2DX7VurbHPe1j1';
$baseurl = 'https://smartsmssolutions.com/api/json.php?';
$sms_array = array
(
'sender' => $senderid,
'to' => $to,
'message' => $message,
'type' => '0',
'routing' => 4, //basic route = 4
'token' => $token
);
$params = http_build_query($sms_array);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $baseurl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$output = curl_exec($ch);
//echo curl_error($ch);
curl_close($ch);
echo $output; // response code
?>