how to Send automated SMS using API? : I have this condition to scheduled my sms.(ERROR) but the sms im using is POST method I need to be automated. and send sms to the number of the current id. i dont know how to get the number of the current id and send the message. here is my code:
I NEED HELP


		$duedate = "";
		$date_now=date("Y-m-d");
        date_default_timezone_set('Asia/Manila');
        $date_now = strtotime($date_now);
        $duedate= strtotime($duedate);
  

    if ($duedate<=$date_now) {

    function itexmo($number,$message,$apicode) {
    $url = 'https://www.itexmo.com/php_api/api.php';
    $itexmo = array('1' => $number, '2' => $message, '3' => $apicode);
    $param = array(
    'http' => array(
        'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
        'method'  => 'POST',
        'content' => http_build_query($itexmo),
    ),
    );
    $context  = stream_context_create($param);
    return file_get_contents($url, false, $context);}


    if ($_POST){
	$number = $number;
	$name = $name;
	$api = "API";
	$text = $name." : ".$number;
	
	if(!empty($_POST['name']) && ($_POST['number']) && ($_POST['msg'])){
	$result = itexmo($number,$text,$api);
	if ($result == ""){
	echo "iTexMo: No response from server!!!
	Please check the METHOD used (CURL or CURL-LESS). If you are using CURL then try CURL-LESS and vice versa.	
	Please CONTACT US for help. ";	
	}else if ($result == 0){
	echo "Message Sent!";
	}
	else{	
	echo "Error Num ". $result . " was encountered!";
		}
	}
}


}