Re: can php detect whether an email address is a valid one?

From: Date: Wed, 14 Nov 2001 07:34:32 +0000
Subject: Re: can php detect whether an email address is a valid one?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74547@lists.php.net to get a copy of this message
get the mx record: function checkmail ($mailtocheck) { if (eregi("^[_\.0-9a-z-]+@([0-9a-z][-0-9a-z\.]+)\.([a-z]{2,3}$)", $mailtocheck, $check)) { if (getmxrr($check[1].".".$check[2],$temp)) { return true; } return false; // kein mx gefunden } else { return false; // syntax fehler } } "Martin Towell" <martin.towell@world.net> schrieb im Newsbeitrag news:6416776FCC55D511BC4E0090274EFEF5089BA0@exchange.world.net... > You can set the "Error-To: " header to some email address that runs a script > to remove the email address - other that that, no, not that I know of. > > -----Original Message----- > From: Alex Chau [mailto:alex@cl2.net] > Sent: Wednesday, November 14, 2001 1:31 PM > To: php-general@lists.php.net > Subject: [PHP] can php detect whether an email address is a valid one? > > > I have a php script sending newsletter to a mailing list time by time, > but some emails are no longer exist, so I need to remove them manually. > Can php detect whether an email address is a valid one, then remove it > from the list automatically? no matter before or after the newsletter > has sent. > > Thanks in advance. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#74547) next »