<?php
require_once('includes/functions.php');

$testEmail = 'rxaero.mro@gmail.com'; // Send test to yourself
$subject = 'SMTP Test - Employee Portal';
$message = '<h3>✅ Email is working!</h3><p>Your Gmail SMTP configuration is correct.</p>';

if (sendSMTPEmail($testEmail, $subject, $message)) {
    echo "✅ Email sent successfully to " . $testEmail . "<br>";
    echo "Check your inbox (and spam folder)";
} else {
    echo "❌ Email failed. Check your PHPMailer installation.";
}
?>