<?php
/**
 * Email Testing Script
 * Use this to test if email configuration is working
 */

require_once '../app/Core/init.php';

$mailer = new Mailer();

// Test email
$test_email = 'adsegzy@gmail.com'; // Change this to your email
$result = $mailer->sendTestEmail($test_email);

if ($result) {
    echo "✓ Test email sent successfully to {$test_email}<br>";
    echo "Check your inbox (and spam folder)";
} else {
    echo "✗ Email sending failed<br>";
    echo "Check error logs at: " . ROOT_PATH . "/storage/logs/app.log";
}