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

try {
    sendBankNotification($chap, 'Account Alert', $name ?? 'Valued Customer', 'Account Alert', '<p>' . $descriptionC . '</p>');
    if (!empty($theothers)) {
        sendBankNotification($theothers, 'Account Alert', 'Administrator', 'Account Alert', '<p>' . $descriptionR . '</p>');
    }
} catch (Exception $e) {
    error_log('Email send failed: ' . $e->getMessage());
}
