File: D:/HostingSpaces/SBogers10/komma-mediadesign.nl/wwwroot/ledubsms/test.php
<?php
include("all_kms_con.php");
// Require the class
require_once('classes/class.molliesmsbatch.php');
// Initiate the class with Mollie SMS credentials
$batch = new MollieSmsBatch('test12314', 'smspassword');
// Add a few messages to the batch
$q_teams = "SELECT kms_sms.sms_id, kms_sms.teamnaam, kms_sms.pouleCode, kms_sms.telefoonnummer FROM kms_sms ORDER BY kms_sms.sms_id ASC";
$r_teams = mysql_query($q_teams);
while($rec_teams = mysql_fetch_assoc($r_teams)){
$batch->addMessage('Ledub Crew', $rec_teams['telefoonnummer'],
'Goedemorgen '.$rec_teams['teamnaam'].'! Welkom bij Ledub! Vanaf half 9 kun je jouw team aanmelden met poulcode: '.$rec_teams['pouleCode'].'. Tot zo!');
}
// Submit the batch to the Mollie SMS XML API
$batch->submit();
?>
<?php echo $_GET["total_messages"]; ?>.<br />
<?php echo $_GET["total_recipients "]; ?>!