Click here to Skip to main content
15,887,349 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai guys. i created an apps with registration and log in form .. my need is wants to send confirmation mail to the user while they register my apps. to check whether that id is belongs to them ..i don't have any idea to do this .. please help me anyone ..Thanks in advance
Posted
Comments
Prasad Avunoori 27-Jun-14 3:18am    
After registration you will send an email with some uniqueId. If the user enters that uniqueId in your app again then the User's email address is valid and you may register that user.
Member 10556609 27-Jun-14 5:35am    
will u please attach some example coding or link ?.. because am new to android
Prasad Avunoori 27-Jun-14 5:39am    
Android is not my area of expertise. Follow what Mushaan posted in Solution1.
Member 10556609 27-Jun-14 5:42am    
Its ok thanks for the reply

1 solution

Hi,
Keep a flag in userTable like 'active' or something. also keep a 'verificationCode' feild. At the registration time set active=false and generate a random number/string, set it to verification code. encrypt userID and send an email to user with this
encrypted userid and verification code.
like

Your activation like : www.example.com/user/activate.aspx?code=jsjfgj*#098s@zkdfhsskdjfh
Your verification code : 1245AS3

In activate.aspx page give an option to enter verification code. when user submit, decript userID and check is it valid verification code, if yes set active =true.
thats enough.

you can also do it without verification code.In this case you need only the activation link. if user hit this link, decrypt userID and activate user at page load event.
 
Share this answer
 
Comments
Member 10556609 27-Jun-14 5:32am    
will u please attach some example coding or link ?.. because am new to android

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900