Communication'; $emails = array(); $q = $mysqli->query("SELECT * FROM emails"); while($e = $q->fetch_assoc()) { $emails[$e['id']] = email_load($mysqli, '', -1, $e); } $action = ''; if(array_key_exists('action', $_GET)) { $action = $_GET['action']; } switch($action) { case 'qdelall': $mysqli->real_query("DELETE FROM queue WHERE command='email' AND result='queued'"); $action = ''; break; case 'qstop': queue_stop($mysqli); $action = ''; break; case 'qstart': queue_start($mysqli); $action = ''; break; } sfiab_page_begin($u, "Email Queue", $page_id, $help); ?>

Current Email Queue

query("SELECT * FROM queue WHERE command='email' AND result='queued'"); ?>

Current Email Queue Status is: Stopped Active

Queued Emails: num_rows?>

Start Queue Stop Queue Delete Emails in Queue
fetch_assoc()) { ?>
EmailTo Name (uid)To EmailStatus
() Queued