<?php

ini_set('display_errors', 1);
error_reporting(E_ALL);

require __DIR__ . '/includes/mailer.php';

echo "<h3>Testing Mail System...</h3>";

$result = sendMail(
    "edwardolson59@gmail.com",
    "Test Mail - SecureBank",
    "<h2>This is a test email</h2><p>If you see this, mail system works.</p>"
);

if ($result) {
    echo "EMAIL SENT SUCCESSFULLY ✅";
} else {
    echo "EMAIL FAILED ❌";
}