public function continueClicked()
    {
        $html = $this->getHtmlSequence();
        $org  = $this->token->getOrganization();

        $html->h3($this->_('Token'));

        $mailLoader = $this->loader->getMailLoader();
        /** @var \Gems_Mail_TokenMailer $mail */
        $mail       = $mailLoader->getMailer('token', $this->showToken->getTokenId());
        $mail->setFrom($this->showToken->getOrganization()->getFrom());
        if ($mail->setTemplateByCode('continue')) {
            $lastMailedDate = \MUtil_Date::ifDate($this->showToken->getMailSentDate(), 'yyyy-MM-dd');
            // Do not send multiple mails a day
            if (! is_null($lastMailedDate) && $lastMailedDate->isToday()) {
                $html->pInfo($this->_('An email with information to continue later was already sent to your registered email address today.'));
            } else {
                $mail->send();
                $html->pInfo($this->_('An email with information to continue later was sent to your registered email address.'));
            }

            $html->pInfo($this->_('Delivery can take a while. If you do not receive an email please check your spam-box.'));
        }

        if ($sig = $org->getSignature()) {
            $html->pInfo()->raw(\MUtil_Markup::render($this->_($sig), 'Bbcode', 'Html'));
        }

        return $html;
    }
public function continueClicked()
    {
        $html = $this->getHtmlSequence();
        $org  = $this->token->getOrganization();

        $html->h3($this->_('Token'));

        $mailLoader = $this->loader->getMailLoader();
        /** @var \Gems_Mail_TokenMailer $mail */
        $mail       = $mailLoader->getMailer('token', $this->showToken->getTokenId());
        $mail->setFrom($this->showToken->getOrganization()->getFrom());
        if ($mail->setTemplateByCode('continue')) {
            $lastMailedDate = \MUtil_Date::ifDate($this->showToken->getMailSentDate(), 'yyyy-MM-dd');
            // Do not send multiple mails a day
            if (! is_null($lastMailedDate) && $lastMailedDate->isToday()) {
                $html->pInfo($this->_('An email with information to continue later was already sent to your registered email address today.'));
            } else {
                $mail->send();
                $html->pInfo($this->_('An email with information to continue later was sent to your registered email address.'));
            }

            $html->pInfo($this->_('Delivery can take a while. If you do not receive an email please check your spam-box.'));
        }

        if ($sig = $org->getSignature()) {
            $html->pInfo()->raw(\MUtil_Markup::render($this->_($sig), 'Bbcode', 'Html'));
        }

        return $html;
    }
public function continueClicked ( ) { $ html = $ this -> getHtmlSequence ( ) ; $ org = $ this -> token -> getOrganization ( ) ; $ html -> h3 ( $ this -> _ ( 'Token' ) ) ; $ mailLoader = $ this -> loader -> getMailLoader ( ) ; /** @var \Gems_Mail_TokenMailer $mail */ $ mail = $ mailLoader -> getMailer ( 'token' , $ this -> showToken -> getTokenId ( ) ) ; $ mail -> setFrom ( $ this -> showToken -> getOrganization ( ) -> getFrom ( ) ) ; if ( $ mail -> setTemplateByCode ( 'continue' ) ) { $ lastMailedDate = \ MUtil_Date :: ifDate ( $ this -> showToken -> getMailSentDate ( ) , 'yyyy-MM-dd' ) ; // Do not send multiple mails a day if ( ! is_null ( $ lastMailedDate ) && $ lastMailedDate -> isToday ( ) ) { $ html -> pInfo ( $ this -> _ ( 'An email with information to continue later was already sent to your registered email address today.' ) ) ; } else { $ mail -> send ( ) ; $ html -> pInfo ( $ this -> _ ( 'An email with information to continue later was sent to your registered email address.' ) ) ; } $ html -> pInfo ( $ this -> _ ( 'Delivery can take a while. If you do not receive an email please check your spam-box.' ) ) ; } if ( $ sig = $ org -> getSignature ( ) ) { $ html -> pInfo ( ) -> raw ( \ MUtil_Markup :: render ( $ this -> _ ( $ sig ) , 'Bbcode' , 'Html' ) ) ; } return $ html ; }
Handle the situation when the continue later link was clicked

@return \MUtil_Html_HtmlInterface
Handle the situation when the continue later link was clicked