Posted by peter on 03/29/07 16:44
> I tried the following code:
>
> //check the email address exists
> $sender_email = explode('@', $sender_email);
> $emailhost = $sender_email[1];
> if (!dns_get_mx($emailhost, $mxhostsarr))
> {
> echo 'Email address is not a valid host';
> exit;
> }
>
> But it generates a fatal error on the hosting server, probably because PHP
> is running under Windows and this function is not implemented in Windows.
> I read I should use the PEAR::Net_DNS package but do not know how to use
> it in my case. Could you please help me?
>
The following page should give you an indication on how to use it
http://viebrock.ca/code/2/porting-netdig-to-netdns
[Back to original message]
|