<?php
require_once 'services/MailService.php';

echo "Testing MailService::sendPasswordReset...\n";
$_SERVER['HTTP_HOST'] = 'localhost';
$result = MailService::sendPasswordReset('test@example.com', 'abcdef123456');

if ($result || file_exists('storage/logs/mail.log')) {
    echo "SUCCESS: Email logged to storage/logs/mail.log\n";
    echo "Log Content:\n";
    echo file_get_contents('storage/logs/mail.log');
} else {
    echo "FAILURE: Email not logged.\n";
}
