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

try {
    sendBankNotification(
        $chap,
        'Transaction Alert',
        $name ?? 'Valued Customer',
        'Debit Alert',
        $body,
    );
} catch (Exception $e) {
    error_log('Email send failed: ' . $e->getMessage());
}
