Re: Quick email address check
| From: | Eric Butera | Date: | Wed, 26 Mar 2008 17:41:28 +0000 |
| Subject: | Re: Quick email address check | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272136@lists.php.net to get a copy of this message | ||
On Wed, Mar 26, 2008 at 1:28 PM, Al <news@ridersite.org> wrote:
> I'm scripting a simple registry where the user can input their name and email address.
>
> I'd like to do a quick validity check on the email address they just inputted. I can
> check the
> syntax, etc. but want check if the address exists. I realize that servers can take a long
> time to
> bounce etc. I'll just deal with this separately.
>
> Is there a better way than simply sending a test email to see if it bounces?
>
> Thanks....
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
You could use PEAR Validate::email() with the hostname lookup. It
isn't exactly what you're asking for but I use it a lot with fairly
good success.