You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Michael Stanley <mp...@syr.edu> on 2001/04/21 00:44:20 UTC

Validating email addresses in forms

Does Turbine have any services to validate form fields?  I.e. 
isEmailAddress() or something like it?

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Validating email addresses in forms

Posted by John McNally <jm...@collab.net>.
Intake.  But it is not documented well enough yet for general use, so
no.

I will work on documenting intake this weekend so that it might become
more attractive.

John McNally

Michael Stanley wrote:
> 
> Does Turbine have any services to validate form fields?  I.e.
> isEmailAddress() or something like it?
> 
> Mike
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Validating email addresses in forms

Posted by Daniel Rall <dl...@collab.net>.
"Albrecht F.Leiprecht" <al...@mail.ccc-casino.com> writes:

> ----- Original Message ----- 
> From: Michael Stanley <mp...@syr.edu>
> To: <tu...@jakarta.apache.org>
> Sent: Friday, April 20, 2001 6:44 PM
> Subject: Validating email addresses in forms
> 
> 
> > Does Turbine have any services to validate form fields?  I.e. 
> > isEmailAddress() or something like it?
> > 
> > Mike
> 
> 
> If you want to check it against the MX, I have written some code,
> but it's not finished yet..
> 
> Is there need for something like this ?

That interests me.  Can you post it to the list?

Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Validating email addresses in forms

Posted by Jon Stevens <jo...@latchkey.com>.
on 4/21/01 9:08 AM, "Albrecht F.Leiprecht" <al...@mail.ccc-casino.com> wrote:

> If you want to check it against the MX, I have written some code,
> but it's not finished yet..
> 
> Is there need for something like this ?
> 
> rgds
> albi

This still doesn't solve the problem or really help anything out.

Some background:

I have spent quite a few hours trying to solve this problem. I even wrote
some PHP code that would attempt to validate email addresses against
servers.

<http://px.sklar.com/code-pretty.html?code_id=95>

The end story is that it doesn't work because there are all sorts of ways to
route email that do not allow you to determine if an address is valid or
not. 

The check that you describe above simply checks to make sure that the domain
has a MX for it. That still doesn't do much other than tell you that there
is  a server for the domain. It has absolutely no bearing on whether or not
the email is valid or not.

Anyway, the *only* solution that works is the breadcrumb dropping method
that I suggested earlier.

-jon


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Validating email addresses in forms

Posted by "Albrecht F.Leiprecht" <al...@mail.ccc-casino.com>.
----- Original Message ----- 
From: Michael Stanley <mp...@syr.edu>
To: <tu...@jakarta.apache.org>
Sent: Friday, April 20, 2001 6:44 PM
Subject: Validating email addresses in forms


> Does Turbine have any services to validate form fields?  I.e. 
> isEmailAddress() or something like it?
> 
> Mike


If you want to check it against the MX, I have written some code,
but it's not finished yet..

Is there need for something like this ?

rgds
albi


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Validating email addresses in forms

Posted by Daniel Rall <dl...@collab.net>.
Michael Stanley <mp...@syr.edu> writes:

> Does Turbine have any services to validate form fields?  I.e. 
> isEmailAddress() or something like it?

Intake probably handles this.  John?

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Validating email addresses in forms

Posted by Jon Stevens <jo...@latchkey.com>.
on 4/20/01 3:44 PM, "Michael Stanley" <mp...@syr.edu> wrote:

> Does Turbine have any services to validate form fields?  I.e.
> isEmailAddress() or something like it?
> 
> Mike

You can't validate emails beyond the obvious. Even if it is a syntax correct
email, that doesn't promise that it is "valid". Ie: foo@bar.com is a valid
email address.

The right way to do it is to send an email to the user with a special key in
it. The email has a link in it that the user can click when they get the
email.

Try registering with ebay for an example of how this process works.

-jon


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org