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 Status is:
Stopped
Active
Queued Emails: =$q->num_rows?>
To Name (uid) | To Email | Status | |
=$emails[$eq['emails_id']]['name']?> | =$eq['to_name']?> (=$eq['to_uid']?>) | =$eq['to_email']?> | Queued |