Menu

You entered an invalid email address

Help
2013-08-27
2013-08-30
  • Patch Logan

    Patch Logan - 2013-08-27

    I get every time the message "You entered an invalid email address" if I don't use a com or de domain.
    .net for example did not work.

    SVN Manager: v1.09

    Any Idea?

    Thx

     

    Last edit: Patch Logan 2013-08-27
  • Patch Logan

    Patch Logan - 2013-08-30

    Got the workaround without the checkdnsrr from prado.
    Just uncomment the part from the "public function evaluateIsValid()" in "prado-2.0.3/framework/Web/UI/WebControls/TEmailAddressValidator.php" .

        ///*
        if($valid && function_exists('checkdnsrr'))
        {
            $idPath=$this->getControlToValidate();
            if(strlen($idPath))
            {
                $control=$this->getTargetControl($idPath);
                $value=$control->getValidationPropertyValue();
                if(strlen($value))
                {
                    $pos=strpos($value,'@');
                    if($pos===false)
                        $valid=false;
                    else
                    {
                        $domain=substr($value,$pos+1);
                        $valid=strlen($domain)?checkdnsrr($domain,'MX'):false;
                    }
                }
            }
        }
        //*/
    

    The file with the change is attached.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.