eastcoastdubs Posted February 15, 2003 Share Posted February 15, 2003 I have finally made a perfectly functioning forgot password email script. Emails perfectly, subject, to, from, body. except. the this The password field name in the database is userpassword. I AM using mysql\'s encryption method password(\'userpassword\') but how do I send it to the email? I have the select query doing thing. $sql = \"SELECT userpassword, username, useremail FROM $user_tablename WHERE useremail = \'$email\'\"; it works fine. BUT the userpassword is not passed thru to the email with $userpassword. anyhelp? thanks all, btw I have only been working with mysql for a week now so bear with me if this is a major brain fart. Also, is there a better/easier encryption method? that will do what I am looking to do? Quote Link to comment https://forums.phpfreaks.com/topic/156-how-do-i-send-the-encrypted-user-password-thru-email-help/ Share on other sites More sharing options...
effigy Posted February 16, 2003 Share Posted February 16, 2003 md5() is a better method... you will have to e-mail them the password before encrypting it, otherwise it will need to be reset. i\'m not the auto enhancement type of guy, but great choice of car... Quote Link to comment https://forums.phpfreaks.com/topic/156-how-do-i-send-the-encrypted-user-password-thru-email-help/#findComment-463 Share on other sites More sharing options...
eastcoastdubs Posted February 16, 2003 Author Share Posted February 16, 2003 one more question. the database I\'m making is just for users having a profile of there cars. Do you really think it is necessary to even encrypt the passwords? Quote Link to comment https://forums.phpfreaks.com/topic/156-how-do-i-send-the-encrypted-user-password-thru-email-help/#findComment-468 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.