/** * Send mail to webmaster * * @access private */ private function send() { if (VPost::submit(false)) { if (!VPost::c_email() || !VPost::c_object() || !VPost::c_content()) { $this->_result = false; } elseif (!preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\\._-]+)+\$/", VPost::c_email())) { $this->_result = 'false email'; } else { $mail = new Mail(VPost::recaiver(), VPost::c_object(), VPost::c_content(), VPost::c_email()); $mail->send(); $this->_result = true; } } }