Title, I have implemented the email with Phpmailer.
But what should be sent to the user to change the password hyperlink, how should be generated, and how to control its failure time?
Ask the big God pointing brother.
Reply to discussion (solution)
Seek the guidance of the Great God ...
Seek the guidance of the Great God ...
The generated words should be based on the parameters of the page needs to be encrypted after the string bar, as for the expiration time that can be passed in the parameters of a time to send the value of the past, when he clicked on the time to get to the moment and make a judgment on the line ...
Didn't get it, Makr a bit ~ ~
First you will send a connection to the member's mailbox, and then this connection parameters, can be by your site's domain name + current time + Member mailbox encryption composition, encryption method you can use the simplest base64encode, and then separated by commas these 3 parameters, similar to $str = Base64Encode ( "Www.aaa.com,2013-11-20 minutes, Seconds, aaaaa@qq.com"); When a member clicks on the link in the mailbox, it jumps back to your website and then logic handles it himself.
Reference http://www.helloweba.com/view-blog-228.html
When the database record 1, when the activation of the time difference.
has been achieved, thank you, the great God!