Confirming email addresses?

405 views
Skip to first unread message

ashl...@gmail.com

unread,
Jun 30, 2014, 4:14:23 PM6/30/14
to mitappinv...@googlegroups.com
Hi there everyone,

So a little background, I got my app off the ground last week (a waiver application, so we no longer need to use paper) and since then I had a few days of no response on the email field.  So to counter act this I placed a control that if the email field is blank the app wont submit.  All was thought to be well.  Then I came in  today and check the weekend logs and almost no one entered a valid email address.  I have tons of "no" and "asdfgrsd" and even a few "asdgaergzz...@gmail.com" but very few genuine addresses.  

I was just wondering if there was anyway I could set up to at the very least require an "@somethingsomeplace.com"?  

Enis

unread,
Jun 30, 2014, 6:42:32 PM6/30/14
to
You can do your own checking by just looking for the @ sign, but honestly, that's not going to tell you anything.  The only way to TRULY verify email submissions, like in many newsletter plug-ins for Wordpress for instance, require the host (you) to send a confirmation email to that address with a link that confirms receipt.  Only after a return response from that address should you add the email address to a list of viable addresses.

The actual email verification process I believe itself would be very difficult in App Inventor alone.

phantomfoot

unread,
Jul 1, 2014, 12:15:41 AM7/1/14
to mitappinv...@googlegroups.com
You could use a Verify Email API to check email addresses, like this one http://verify-email.org/using-api.html or this one http://emailpie.com/.

simple api that checks if an email address if valid and exists. It checks the format of the address then tries to contact the server to make sure the address exists.

Here's some others: http://blog.mashape.com/list-of-25-email-validation-apis/

To use with AppInventor, simply do a Web.Get to the URL (with the email address in it) as specified, and see what the response is in Web.GotText. 

If the response says it's valid, proceed with submit. If not valid, don't submit.

Sajal Dutta

unread,
Jul 1, 2014, 8:34:49 AM7/1/14
to
You can use the text/string they enter and try matching with the regex below-


"^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$"
But know that, even if an email looks valid, it might not exist..like cooldude@iamgoingtospaceanddancewithakoala.com

Taifun

unread,
Jul 1, 2014, 9:22:04 AM7/1/14
to
another possibility is to use the new Gmail API

you can send an email to your user from within the app, the user receives the email in his inbox and sends it back, then after having received the email in the app you now know, that the email address is valid and also belongs to that user...

Taifun

Seav

unread,
Sep 23, 2014, 8:01:12 PM9/23/14
to mitappinv...@googlegroups.com
is it possibel to checlk if the given email is an existing account on the device where the app is running 
using fussing table you have to choose between your accounts on your device wtch one you want to use automaticly but how can you set this up by tour self
Reply all
Reply to author
Forward
0 new messages