<?php
function send_admin_email($subject, $html) {
  if (defined('APP_DEBUG_EMAIL') && APP_DEBUG_EMAIL) {
      error_log("[DEV EMAIL to ADMIN] $subject\n" . strip_tags($html));
      return true; // don’t actually send in dev
  }
  // ... PHPMailer real send ...
}
function send_admin_email($subject, $html) {
  if (defined('APP_DEBUG_EMAIL') && APP_DEBUG_EMAIL) {
      error_log("[DEV EMAIL to ADMIN] $subject\n" . strip_tags($html));
      return true; // don’t actually send in dev
  }
  // ... PHPMailer real send ...

}
