c_shelswell Posted November 21, 2008 Share Posted November 21, 2008 Hi for some reason the below code keeps returning false not quite sure what i'm doing wrong. Any ideas would be great thanks. $mailDomain = 'hotmail'; if (checkdnsrr($mailDomain, "MX")) { return true; } else { return false; } unless there's a better way to test for badly typed domains. i.e. yaho rather than yahoo? Cheers Link to comment https://forums.phpfreaks.com/topic/133687-solved-checkdnsrr-not-working-keeps-failing-domain/ Share on other sites More sharing options...
c_shelswell Posted November 21, 2008 Author Share Posted November 21, 2008 sorry just realised what i was doing should really put a .com at the end! Link to comment https://forums.phpfreaks.com/topic/133687-solved-checkdnsrr-not-working-keeps-failing-domain/#findComment-695628 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.