<?php
require_once __DIR__ . '/../../includes/email.php';

try {
    sendBankNotification(
        $chap,
        'Reversal Notification',
        $name ?? 'Valued Customer',
        'Transaction Reversal',
        '<p>A reversal has been processed on your account.</p>'
    );
} catch (Exception $e) {
    error_log('Email send failed: ' . $e->getMessage());
}
