HTTP SEND PHP

By
PHP Code Example - Sending SMS

<?php

$sms_username = "yourusername";
$sms_password = "yourpassword";
$mobilenumber = "353871234567";
$message = "Hello this is testing Sendmode gateway";
$senderid = "TEST";
  
$url = "https://api.sendmode.com/httppost.aspx?Type=sendparam&username=".urlencode($sms_username)."&password=".urlencode($sms_password)."&numto=".urlencode($mobilenumber)."&data1=".urlencode($message)."&senderid=".urlencode($senderid);
  //pr($url) ; die;
$reply = file_get_contents($url);
$reply_data = simplexml_load_string($reply);
$val=$reply_data->call_result->result;
echo $val;
?>