new password for forgotten password


while the user entering the username and password if he forget password
he wants to click the forget password link and he wants to get the new password by entering his emailid and username, so that he receive the new password in his mailid, if any body knows coding for this send me.

u can make classes for that purpose.

that would be very long coding, so use classes

Rather use phpBB/vbulletin.