Validación de correo electrónico (no solo regex)

I want to validate complete Email address. I am not asking to match using pericular string.

but suppose someone enter email id a@bnm.com then first the bnm should be validated and if such domain found then also it should check for such a@bnm.com is available or invalid.???

Can anyone tell me how can i do this?>?>

preguntado el 09 de enero de 11 a las 04:01

Generally, to completely validate an email address you just send them an email with a link back to your site, so you can confirm that (a) the email address works and (b) it belongs to the person who just signed up with you -

But even i dont want that fake registration done in my database.. -

What fake registration? Are you sending unsolicited email? -

@Kishan Gajjar : That's correct. Let's face it, if a user can't enter their own email correctly, you have a bigger problem. -

Expire registrations that have not completed after some amount of time, like a day. -

2 Respuestas

Validating an email address and verifying the account actually exists are two very different things.

One way (and possibly the only effective way) to do this is at the end of the user registration process, send a 'reply required to confirm' email to the supplied email address (after checking the format is correct).

As Greg Hewgill noted, you should expire registrations that do not receive a reply in a certain time period, say 7 days.

Respondido el 09 de enero de 11 a las 08:01

@kishan: it's not a "fake registration". Quite the opposite in fact. - Trigo Mitch

Or you could use some Email validation service for verifing if they exists. I have found one for you Best Coding Pratices, well this is a free service and has some limitations on it.

If you dont like it you can google for other email validation services.

Respondido el 09 de enero de 11 a las 10:01

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.