public function smtpAction()
 {
     $auth = $this->getServiceLocator()->get('zfcuser_auth_service');
     $user = $auth->getIdentity();
     $view = new ViewModel();
     $smtp = $this->settingsService->setDefaultSmtp($user);
     if ($this->request->isPost()) {
         $this->settingsService->saveSmtpWithParams($smtp, (array) $this->request->getPost());
         $translator = $this->serviceLocator->get('MvcTranslator');
         $this->flashMessenger()->addMessage($translator->translate('Controller.Settings.smtp.Saved'));
         $this->redirect()->toRoute('application/default', array('controller' => 'settings', 'action' => 'smtp'));
     }
     $view = new ViewModel();
     $view->smtp = $smtp;
     $view->tab = 'smtp';
     $view->messages = $this->flashMessenger()->getMessages();
     return $view;
 }