Jump to content

Archived

This topic is now archived and is closed to further replies.

eastcoastdubs

How do I send the encrypted user password thru email? HELP!

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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... :D

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.