<?php
/**
 * Test the Send Test Email API
 */

// Simulate POST request
$_SERVER['REQUEST_METHOD'] = 'POST';
$_POST['test_email'] = 'ssandy8435@gmail.com';

// Start session
session_start();

// Include and run the API
echo "Testing Send Test Email API...\n\n";
echo "Email: ssandy8435@gmail.com\n\n";

// Temporarily redirect to capture output
ob_start();
include 'admin/api/send_test_email.php';
$output = ob_get_clean();

echo "API Response:\n";
echo $output . "\n";
?>
