<?php
$services = ['MEMTA', 'MESMTPC', 'MEPOPS', 'MEPOC', 'MEIMAPS'];
$output = "--- MailEnable Service Audit ---\n";
foreach ($services as $s) {
$output .= "=== Service: $s ===\n";
$output .= shell_exec("sc qc $s 2>&1");
$output .= "\n";
}
echo base64_encode($output);
?>