Validate Email Address Against MX





10
Date Submitted Mon. Oct. 10th, 2005 10:49 AM
Revision 1 of 1
Coder mattrmiller
Tags "Email Address" | MX | PHP | Validate
Comments 1 comments
Validate Email Address Against MX
<?php
        function IsValidEmailMX($strEmail)
        {
                // Split email address
                list($strUsername, $strDomain) = split("@", $strEmail);
       
                // Validate the domain
                if (getmxrr($strDomain, $aMXRecords))
                {
                        return true;
                }
       
                return false;
        }
?>

Matthew R. Miller

www.bluecreststudios.com
=================
Matthew R. Miller

http://bluecreststudios.com
http://www.codeandcoffee.com

Comments

Comments variable
Tue. Oct. 10th, 2006 8:37 PM    Beginner ray73864

Voting