public function sendEmailTest()
 {
     $objEmail = new EmailQueue();
     $objEmail->subject = "Test email from " . _xls_get_conf('STORE_NAME');
     $orderEmail = _xls_get_conf('ORDER_FROM', '');
     $objEmail->to = empty($orderEmail) ? _xls_get_conf('EMAIL_FROM') : $orderEmail;
     $objEmail->htmlbody = "<h1>You have successfully received your test email.</h1>";
     $objEmail->save();
     $blnResult = _xls_send_email($objEmail->id, true);
     if ($blnResult) {
         Yii::app()->user->setFlash('warning', 'Test email successfully sent to ' . $objEmail->to . '.');
     } else {
         Yii::app()->user->setFlash('error', 'Error - the test email failed sending to ' . $objEmail->to . '.');
         $objEmail->delete();
     }
 }