Click here to Skip to main content
15,905,913 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I write one code for sending email after user submit the form....But in that mail instead of data i want to send user access password to user for future use...

For this can i maintain new database table only for some passwords??
if yes then how can i update automatic passwords in that data base??
if no then provide alternative way...

Thanks in advance....
Posted

1 solution

You want to send the user's credential details to him in the email service that confirms that the user has connected to your service; registration complete.

You should know, that mostly the web applications save the password in an encrypted format so that it is hard for humans to copy and use that password for any illegal work. You will be needing to decrypt that password once saved in the Database.

So a turn around is that, before saving his details in side the database, you save the password in the variable that is used in the email and gets deleted from the memory as soon as the email is sent and the remaining process just works as it has to be; password remain encrypted.
 
Share this answer
 
Comments
Shivaram_i 13-Nov-14 5:55am    
Okay leave about pass word...want to send some random numbers to every one like IDs..for that what can i do?
Afzaal Ahmad Zeeshan 13-Nov-14 7:36am    
Yes, you can create a GUID for that. But it is a good approach to just increment the previous ID by 1.

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