Para probar si la cuenta de gmail existe o no

I want to login using gmail in my app is it possible to test whether the given gmail a/c exists or not programmatically in objective c.

preguntado el 31 de julio de 12 a las 11:07

1 Respuestas

Ejecute estos comandos:

telnet gmail-smtp-in.l.google.com 25
ehlo
mail from: <me@example.com> //can be any made up email
rcpt to: <somenonexistinguser@gmail.com> //the email of the user you want to check

Please note you must include the greater and less than or equal to signs.

If you get OK followed by a string returned, the email is valid. Anything else, and an error will have been returned (ergo, the email is invalid).

Respondido 31 Jul 12, 11:07

Good answer. OP, bear in mind that this should work for one address, but if you test multiple addresses in quick succession, you'd be liable to be blocked by GMail. - la mitad

i didn't get where i need to run these commands @jacktheripper. - Sandy_ios

Run them in Terminal if you're on a mac. These commands should be universal to the command prompt of any UNIX system. - Jack el destripador

But i want to test this through my iphone app not on mac - Sandy_ios

There should be a telnet library available in iOS. - la mitad

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