PHP Classes

MX Hosts

Recommend this page to a friend!

      PHP Email validation  >  PHP Email validation package blog  >  How to Correct Email ...  >  All threads  >  MX Hosts  >  (Un) Subscribe thread alerts  
Subject:MX Hosts
Summary:The script uses $hosts variable???
Messages:2
Author:Aschwin Wesselius
Date:2007-01-08 11:27:19
Update:2007-01-08 13:32:30
 

  1. MX Hosts   Reply   Report abuse  
Picture of Aschwin Wesselius Aschwin Wesselius - 2007-01-08 11:27:19
Hi, I'm looking into this code and find that the function ValidateEmailBox has a call to ValidateEmailHost function. But it reffers a $hosts variable which is not set. What is it suppose to do???

What I want (and I think this function is used for) is to find out what the mail-server is for the domain. Therefore I think the ValidateEmailHost has to set the $this->hosts variable within the class itself. But it only uses a local scope for hosts. If the MX-record returns a valid mail-server subdomain (or IP-address) I would like to use that to verify the user against.

Can somebody help me with this?

Thanks.

Unomi

  2. Re: MX Hosts   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-01-08 13:32:30 - In reply to message 1 from Aschwin Wesselius
The $hosts parameter is to return by reference the MX addresses of the e-mail domain. So it is not really an input parameter.