Re: Email Verification

From: Date: Sun, 24 Feb 2002 22:40:48 +0000
Subject: Re: Email Verification
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-86016@lists.php.net to get a copy of this message
Is this what you want? function validateEmail ($email) { return (ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'. '[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.' . '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email)); } This will also do the job. It actually connects to the mail server name and runs it to see if valid : http://px.sklar.com/code-pretty.html?code_id=508

« previous php.general (#86016) next »