File: /home/imensosw/public_html/imenso.co/payment/sms/index.php
<?php
header("Content-type: text/xml");
$params['to'] = "19194430456";
$params['from'] = "16175397586";
$params['body'] = "Test message from plum voice";
$params['result_url'] = "http://imenso.co/payment/sms"; //"http://myserver.com/storesmsresults.php";
// initialize curl
$ch = curl_init();
// set necessary curl options
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
curl_setopt($ch, CURLOPT_URL, "https://hosting.plumvoice.com/ws/sms/queue.xml");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERPWD, "ajain@imensosoftware.com:admin@123");
echo(curl_exec($ch));
curl_close($ch);
?>