Re: testing an email address

From: Date: Sat, 13 Oct 2001 13:35:46 +0000
Subject: Re: testing an email address
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-70980@lists.php.net to get a copy of this message
So sprach »Intruder« am 2001-10-12 um 19:09:01 +0300 : > if(eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $email)) return TRUE; That doesn't allow for adresses like You/Me@there.de, or du+ich@du.da or me@stupid.info Actually, I gave up on doing email format checks.... The only sure way to test if a email address is correct, is by sending a mail to the address and checking if you get a "manual" answer. Anyhow, I found this beast in another mailing list. It's supposed to do all kinds of checks (no, I do not understand it either....) Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 hour 46 minutes

« previous php.general (#70980) next »