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

$message = htmlspecialchars($chap, ENT_QUOTES, 'UTF-8') . ' has requested a Bitcoin deposit of ' . htmlspecialchars($amount, ENT_QUOTES, 'UTF-8') . '.';

try {
    sendBankNotification('support@dbhacu.com', 'Bitcoin Deposit Notification', 'System', 'Deposit Request', '<p>' . $message . '</p>');
} catch (Exception $e) {
    error_log('Email send failed: ' . $e->getMessage());
}
