<?php
require_once __DIR__ . '/config/database.php';
require_once __DIR__ . '/utils/helpers.php';
require_once __DIR__ . '/utils/mailer.php';

$to = 'kvng@catgroup.uk';
$subject = 'Manual Test Email';
$body = '<h1>Test Email</h1><p>This is a manual test email sent to verify system functionality.</p>';

echo "Sending email to $to...\n";

$result = sendRobustEmail($to, $subject, $body);

if ($result['success']) {
    echo "SUCCESS: Email sent successfully.\n";
} else {
    echo "ERROR: Failed to send email. " . $result['message'] . "\n";
}
?>
