public function run($args)
 {
     Yii::app()->getModule('main');
     Yii::app()->getModule('mailer');
     MailerOutbox::sendEmails();
 }
 public function actionSendEmails()
 {
     Param::checkRequired(array(MailerModule::PARAM_REPLY_EMAIL, MailerModule::PARAM_FROM_EMAIL, MailerModule::PARAM_FROM_NAME, MailerModule::PARAM_PASSWORD, MailerModule::PARAM_LOGIN, MailerModule::PARAM_HOST, MailerModule::PARAM_PORT), 'mailer');
     MailerOutbox::sendEmails();
 }