Thanks
The response I am getting is:
Warning: fsockopen() [function.fsockopen]: unable to connect to naypalm.net:25 (Connection timed out) in /home/battlesn/public_html/includes/phpClasses/InputController.php on line 120 0
I am running the page as:
/LiveAssistanceHandle.php?ValidateEmail=nay@naypalm.net
The code this links to:
}elseif ($_GET['ValidateEmail']){
$email = $_GET['ValidateEmail'];
$ic = new inputController();
$ic->setData($email);
$ic->email();
echo $ic->lastResult;
}And the email function from the class which is trying but failing to get the result...
public function email(){
$this->log("email function initiated.. ", $this->dbln);
if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $this->data)) {
$this->log("Email address validated... Attempting to search for domain records in DNS...", $this->dbln);
list($username,$domain)=split('@',$this->data);
if(!checkdnsrr($domain,'MX')) {
$this->handleOutcome(0);
return false;
}
$this->log("MX dns entry validated.. attempting to open a socket connection to ensure servers mail is up and running..", $this->dbln);
// attempts a socket connection to mail server
if(!fsockopen($domain,25,$errno,$errstr,30)) {
$this->handleOutcome(0);
return false;
}
$this->handleOutcome(1);
return true;
}else{
$this->handleOutcome(0);
return false;
}
}
This post has been edited by webbhost: 29 January 2012 - 10:02 PM
Help















