public function actionLoop($loopLimit = 1000, $spoolLimit = 10)
    {
        for ($i = 0; $i < $loopLimit; $i++) {
            $done = Yii::app()->emailManager->spool($spoolLimit);
            if ($done) {
                for ($i = 0; $i < $done; $i++) {
                    echo '.';
                }
            }
            sleep(1);
        }
    }