You are here: dns_get_mx not working « PHP Language « IT news, forums, messages
dns_get_mx not working

Posted by mouton on 03/29/07 08:23

Hello,

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?

Thank you.

Cheers

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация