}
         $actionJsList = true;
     }
 } else {
     switch ($arMailingChain["STATUS"]) {
         case MailingChainTable::STATUS_NEW:
             $messageDetails = '<br><p>' . GetMessage("MAILING_ADM_SENDING_NOTE_LINE1") . '<br>' . GetMessage("MAILING_ADM_SENDING_NOTE_LINE2") . '</p>';
             $message = array("MESSAGE" => GetMessage("MAILING_ADM_SENDING_SEND"), "BUTTONS" => array(array("ID" => "btn_stop", "VALUE" => GetMessage("MAILING_ADM_BTN_STOP"), "ONCLICK" => "Stop()"), array("ID" => "btn_cont", "VALUE" => GetMessage("MAILING_ADM_BTN_CONT"), "ONCLICK" => "Cont()")));
             MailingChainTable::initPosting($mailingChainId);
             MailingChainTable::update($mailingChainPrimary, array('STATUS' => MailingChainTable::STATUS_SEND));
             $actionJsList = true;
             $actionJsMoveProgress = true;
             break;
         case MailingChainTable::STATUS_SEND:
             \Bitrix\Main\Application::getInstance()->getConnection()->startTransaction();
             \Bitrix\Sender\MailingManager::chainSend($mailingChainId);
             \Bitrix\Main\Application::getInstance()->getConnection()->commitTransaction();
             $sendErrors = \Bitrix\Sender\MailingManager::getErrors();
             if (empty($sendErrors)) {
                 $messageDetails = '<br><p>' . GetMessage("MAILING_ADM_SENDING_NOTE_LINE1") . '<br>' . GetMessage("MAILING_ADM_SENDING_NOTE_LINE2") . '</p>';
                 $message = array("MESSAGE" => GetMessage("MAILING_ADM_SENDING_SEND"), "BUTTONS" => array(array("ID" => "btn_stop", "VALUE" => GetMessage("MAILING_ADM_BTN_STOP"), "ONCLICK" => "Stop()"), array("ID" => "btn_cont", "VALUE" => GetMessage("MAILING_ADM_BTN_CONT"), "ONCLICK" => "Cont()")));
                 $actionJsMoveProgress = true;
             } else {
                 $message = $sendErrors->getMessage();
             }
             break;
         case MailingChainTable::STATUS_PAUSE:
             $message = array("MESSAGE" => GetMessage("MAILING_ADM_SENDING_PAUSE"), "BUTTONS" => array(array("ID" => "btn_stop", "VALUE" => GetMessage("MAILING_ADM_BTN_STOP"), "ONCLICK" => "Stop()"), array("ID" => "btn_cont", "VALUE" => GetMessage("MAILING_ADM_BTN_CONT"), "ONCLICK" => "Cont()")));
             $actionJs = 'list';
             break;
         case MailingChainTable::STATUS_END: