public static function lottery_complete($status, $log, $unschedule = false) { echo "Lottery complete, status: {$status}<br />\n"; $email = ""; // Output the logging info, transform for email foreach ($log as $line) { echo $line . "<br />\n"; $email .= $line . "\n"; } // TODO: unschedule from pulse here, if true HMS_Email::send_lottery_status_report($status, $email); exit; }