/**
  * Default action.
  *
  * Will be called either by `yiic testmail index` or just by `yiic testmail`.
  */
 public function actionIndex()
 {
     $config = (require ROOT_DIR . '/common/config/main.php');
     $mail = Emailer::test(array('to' => '*****@*****.**', 'from' => Yii::app()->params['mbtx']['registrationEmail'], 'subject' => 'test subject', 'body' => 'test body', 'view' => 'test'));
     $mail->send();
     Yii::app()->language = 'es_mx';
     // default to spanish / mexico
     $mail = Emailer::test(array('to' => '*****@*****.**', 'from' => Yii::app()->params['mbtx']['registrationEmail'], 'subject' => 'test subject', 'body' => 'test body', 'view' => 'test'));
     $mail->send();
 }