Welcome, Guest

Validation mail and check DNS
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Validation mail and check DNS

Validation mail and check DNS 2 years, 1 month ago #10580

Hi, i need verify that the mail is true whith getmxrr php command

the code to verify this mail is
function ff_EMail2_validation(element, message)
{
    $reg_exp= "/^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$/";
    $result=preg_match($reg_exp, element.value);
    if ($result) 
    {
    	//validar el registro mx del dominio
		$mailparts=explode("@",element.value);
		getmxrr($mailparts[1], $mx_records, $mx_weight);
		$retVal=count($mx_records) > 0
    }
    else 
    {
    	$retVal=false;
    }
    return $retVal;
    
}

but don run.
can you help me?
  • Arias
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Karma: 0

Re: Validation mail and check DNS 2 years, 1 month ago #10591

looks like you are trying to do that with a script, which is javascript. You will need to create a piece instead (element, message are only passed through the js scripts, so your code won't work).
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.32 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany