public function email($email)
    {
        $this->errorMessage = null;

        //require_once 'Zend/Validate/EmailAddress.php';
        /*
         * it's a newbelogic, too complicated
          $validator = new \Zend_Validate_EmailAddress();
          $result = $validator->isValid($email);
         */

        if (preg_match("/^[A-Z0-9_-][A-Z0-9._-]*@([A-Z0-9][A-Z0-9-]*\.)+[A-Z\.]{2,6}$/i", $email)) {
            $result = true;
        } else {
            $result = false;
        }
        if (!$result) {
            $this->errorMessage = MessageHelper::getMessage("VALIDATESVC_EMAIL_INVALID", array($this->fieldNameMask));
        }
        return $result;
    }
public function email($email)
    {
        $this->errorMessage = null;

        //require_once 'Zend/Validate/EmailAddress.php';
        /*
         * it's a newbelogic, too complicated
          $validator = new \Zend_Validate_EmailAddress();
          $result = $validator->isValid($email);
         */

        if (preg_match("/^[A-Z0-9_-][A-Z0-9._-]*@([A-Z0-9][A-Z0-9-]*\.)+[A-Z\.]{2,6}$/i", $email)) {
            $result = true;
        } else {
            $result = false;
        }
        if (!$result) {
            $this->errorMessage = MessageHelper::getMessage("VALIDATESVC_EMAIL_INVALID", array($this->fieldNameMask));
        }
        return $result;
    }
public function email ( $ email ) { $ this -> errorMessage = null ; //require_once 'Zend/Validate/EmailAddress.php'; /*
         * it's a newbelogic, too complicated
          $validator = new \Zend_Validate_EmailAddress();
          $result = $validator->isValid($email);
         */ if ( preg_match ( "/^[A-Z0-9_-][A-Z0-9._-]*@([A-Z0-9][A-Z0-9-]*\.)+[A-Z\.]{2,6}$/i" , $ email ) ) { $ result = true ; } else { $ result = false ; } if ( ! $ result ) { $ this -> errorMessage = MessageHelper :: getMessage ( "VALIDATESVC_EMAIL_INVALID" , array ( $ this -> fieldNameMask ) ) ; } return $ result ; }
Built-in \Zend email check

@param string $email
@return boolean Valid?
Built - in \ Zend email check