Title: PHP: Generate random passwords and send email to user Post by: Hellraiser on August 29, 2007, 10:42:01 AM Generate random passwords and send email to user
You can use this feature in the forgotPassword scenarios I have used random passwords in a scenario where a user forgets his password and receives a temporary new password. Generate random password -rand() Code: $random=rand(1234,2343); Send email to user - mail() Code: $headers ="From: [email protected]\n"; //from address Save as sendpassword.php Upload on the web and test it |