<?php
/**
 * Email Helper — backward-compatibility wrapper.
 * All email functionality has been migrated to includes/email.php.
 * This file exists so existing include statements continue to work.
 */
require_once __DIR__ . '/email.php';

// ── Backward-compatible aliases ───────────────────────────────────

/**
 * @deprecated Use sendBankEmail() instead.
 */
function buildEmailTemplate($title, $body, $footerText = '') {
    return $body; // simplified — actual template is now in sendBankEmail()
}

/**
 * @deprecated Use sendBankEmail() or sendBankNotification() instead.
 */
function sendEmail($to, $subject, $htmlBody, $fromEmail = 'support@dbhacu.com', $fromName = 'Deutsche Bank Holdings Delaware', $replyTo = null) {
    return sendBankNotification($to, $subject, 'Valued Customer', $subject, $htmlBody);
}

/**
 * @deprecated Use sendTransferConfirmationEmail() instead.
 */
function sendTransferConfirmation($db, $userEmail, $transId) {
    sendTransferConfirmationEmail($db, $userEmail, $transId);
}
