/**
  * Send notification about new classified added
  *
  * @param  Request        $request    Request object
  * @param  ClassifiedUser $user       Classified user
  * @param  Announcement   $classified Announcement
  * @return void
  */
 public function sendNotificationEmail(Request $request, ClassifiedUser $user, Announcement $classified)
 {
     $emailService = $this->container->get('email');
     $router = $this->container->get('router');
     $em = $this->container->get('em');
     $templatesService = $this->container->get('newscoop.templates.service');
     $placeholdersService = $this->container->get('newscoop.placeholders.service');
     $preferencesService = $this->container->get('preferences');
     $smarty = $templatesService->getSmarty();
     $smarty->assign('user', new \MetaUser($user->getNewscoopUser()));
     $smarty->assign('classified', $classified);
     $smarty->assign('created', $classified->getCreatedAt()->format('Y-m-d H:i:s'));
     $smarty->assign('editLink', $request->getUriForPath($router->generate('ahs_advertsplugin_admin_editad', array('id' => $classified->getId()))));
     try {
         $message = $templatesService->fetchTemplate("_ahs_adverts/email_classified_notify.tpl");
     } catch (\Exception $e) {
         throw new NotFoundHttpException("Could not load template: _ahs_adverts/email_classified_notify.tpl");
     }
     $emailService->send($placeholdersService->get('subject'), $message, array($preferencesService->AdvertsNotificationEmail));
 }