HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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 "]; ?>!