<?php
//Create a file example: queue.php just put it outside www folder(should be where send_sms.php is located)
//Put these codes and call this file from your browser, modify the implementation based on your algorithm
//These codes will create a file and put sms waiting to pooled by EnvayaSMS App based on your Poll Interval
require_once __DIR__."/config.php";
require_once dirname(__DIR__)."/EnvayaSMS.php";
$message = new EnvayaSMS_OutgoingMessage();
$message->id = uniqid("");
$message->to = "+255123456789";
$message->message = "Your message";
file_put_contents("$OUTGOING_DIR_NAME/{$message->id}.json", json_encode($message));
?>