note 23679 deleted from ref.mail by dams

From: Date: Sat, 27 Jul 2002 13:03:54 +0000
Subject: note 23679 deleted from ref.mail by dams
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-33640@lists.php.net to get a copy of this message
Same problem here with mail(). Don't believe that I experienced it until I updgrade PHP > 4.0.6 on the RaQ4, but that could just be me. PHP = Patch, Headaches, Patch Here's an answer to the valid email address question. It's adapted from code I found on the net somewhere. if (eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)* @[a-z0-9-]+([\.][a-z0-9-]+)+$",$email)) { $err_msg="Invalid Email"; } list($user, $domain) = split("@", $email, 2); if (! checkdnsrr($domain, "MX")) { $err_msg = "Email server does not exist."; } return $err_msg;

« previous php.notes (#33640) next »