I have an SMS gateway that receives the data from my form in this pattern:
<?php
include "smsGateway.php";
$smsGateway = new SmsGateway('[email protected]', 'password');
$deviceID = 1;
$numbers = ['+44771232343', '+44771232344'];
$message = 'Hello World!';
$options = [
'send_at' => strtotime('+10 minutes'), // Send the message in 10 minutes
'expires_at' => strtotime('+1 hour') // Cancel the message in 1 hour if the message is not yet sent
];
//Please note options is no required and can be left out
$result = $smsGateway->sendMessageToManyNumbers($number, $message, $deviceID, $options);
?>
I send the numbers, through a SELECT * from my database, I give print in an input field and send the form. However, the carrier does not allow more than 15 simultaneous messages to be sent. Would it be possible to send one by one but only give a SEND on the form?