public function getEMailParam($name, $default = null, $optional = false)
    {
        $value = $this->getParam($name, $default, $optional);
        if ($value !== null) {
            if (!preg_match('/^.+@.+\...+$/', $value)) {
                throw new InvalidParameterException("Parameter '{$name}' is invalid");
            }
        }
        return $value;
    }
public function getEMailParam($name, $default = null, $optional = false)
    {
        $value = $this->getParam($name, $default, $optional);
        if ($value !== null) {
            if (!preg_match('/^.+@.+\...+$/', $value)) {
                throw new InvalidParameterException("Parameter '{$name}' is invalid");
            }
        }
        return $value;
    }
public function getEMailParam ( $ name , $ default = null , $ optional = false ) { $ value = $ this -> getParam ( $ name , $ default , $ optional ) ; if ( $ value !== null ) { if ( ! preg_match ( '/^.+@.+\...+$/' , $ value ) ) { throw new InvalidParameterException ( "Parameter '{$name}' is invalid" ) ; } } return $ value ; }
Returns the value of the specified parameter if it is an e-mail address.

@param string $name
@param string $default
@param bool   $optional
@return string
@throws InvalidParameterException
Returns the value of the specified parameter if it is an e - mail address .