public function email()
    {
        $this->debug->groupCollapsed(__METHOD__);
        $cfg = $this->form->cfg;
        // $persist = &$this->persist;
        $this->emailHeaders = $cfg['email']['headers'];
        $this->debug->log('emailHeaders', $this->emailHeaders);
        $emailBody = '';
        $this->collected = array(
            'email' => '',
            'name'  => '',
        );
        $dbWas = $this->debug->log('collect', false);
        $pages = $this->form->persist->get('pages');
        foreach ($pages as $i => $page) {
            $this->form->setCurrentFields($i);
            if (\count($pages) > 1) {
                $emailBody .= '*** '.\str_replace('_', ' ', $page['name']).' ***'."\n\n";
            }
            $emailBody .= $this->emailGetPage();
        }
        $this->debug->log('collect', $dbWas);
        if (!$cfg['email']['inclMetaInfo']) {
            $emailBody = $this->emailGetMetaInfo()."\n"
                .$emailBody;
        }
        $this->emailHeaders['Body'] = $emailBody;
        if (empty($this->emailHeaders['Reply-To']) && !empty($this->collected['email'])) {
            $this->emailHeaders['Reply-To'] = $this->collected['name'].'<'.$this->collected['email'].'>';
        }
        $email = new Email();
        $return = $email->send($this->emailHeaders);
        $this->debug->groupEnd();
        return $return;
    }