<?php
// Quick test script for sendMail()
require_once __DIR__ . '/../app/helpers/mailer.php';

$to = getenv('TEST_MAIL_TO') ?: 'you@example.com';
$subject = 'FleetOps test email';
$message = '<p>This is a test email from FleetOps application.</p>';

$ok = sendMail($to, $subject, $message);
if ($ok) {
    echo "Email send attempted: SUCCESS\n";
} else {
    echo "Email send attempted: FAILURE\n";
}
