}
     // Insert poll in database
     $ids = $pollService->createPoll($_SESSION['form']);
     $poll_id = $ids[0];
     $admin_poll_id = $ids[1];
     // Send confirmation by mail if enabled
     if ($config['use_smtp'] === true) {
         $message = __('Mail', "This is the message you have to send to the people you want to poll. \nNow, you have to send this message to everyone you want to poll.");
         $message .= '<br/><br/>';
         $message .= Utils::htmlEscape($_SESSION['form']->admin_name) . ' ' . __('Mail', 'hast just created a poll called') . ' : "' . Utils::htmlEscape($_SESSION['form']->title) . '".<br/>';
         $message .= __('Mail', 'Thanks for filling the poll at the link above') . ' :<br/><br/><a href="%1$s">%1$s</a>';
         $message_admin = __('Mail', "This message should NOT be sent to the polled people. It is private for the poll's creator.\n\nYou can now modify it at the link above");
         $message_admin .= ' :<br/><br/><a href="%1$s">%1$s</a>';
         $message = sprintf($message, Utils::getUrlSondage($poll_id));
         $message_admin = sprintf($message_admin, Utils::getUrlSondage($admin_poll_id, true));
         if ($mailService->isValidEmail($_SESSION['form']->admin_mail)) {
             $mailService->send($_SESSION['form']->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'Author\'s message') . '] ' . __('Generic', 'Poll') . ': ' . Utils::htmlEscape($_SESSION['form']->title), $message_admin);
             $mailService->send($_SESSION['form']->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'For sending to the polled users') . '] ' . __('Generic', 'Poll') . ': ' . Utils::htmlEscape($_SESSION['form']->title), $message);
         }
     }
     // Clean Form data in $_SESSION
     unset($_SESSION['form']);
     // Delete old polls
     $purgeService->purgeOldPolls();
     // Redirect to poll administration
     header('Location:' . Utils::getUrlSondage($admin_poll_id, true));
     exit;
 } else {
     if (isset($_POST['fin_sondage_autre'])) {
         Utils::print_header(__('Step 3', 'Removal date and confirmation (3 on 3)'));
         bandeau_titre(__('Step 3', 'Removal date and confirmation (3 on 3)'));