Aegis Shield Daily Scan Report'; $body .= '

Scanned: ' . esc_html($results['scanned_files']) . ' PHP files.

'; if (!empty($results['suspicious_matches'])) { $body .= '

Suspicious Code Found:

'; } else { $body .= '

No suspicious code found.

'; } if (!empty($results['integrity_issues'])) { $body .= '

Integrity Issues:

'; } // Send email in HTML format wp_mail( get_option('admin_email'), $subject, $body, ['Content-Type: text/html; charset=UTF-8'] ); // Save last scan timestamp update_option('aegis_shield_last_cron_scan', current_time('mysql')); }