I have a created a custom module with simple form with only three fields ( Url, title & email ) , where user has to enter all the fields for submission.
I am able to send the mail to the user from my custom module but i need to create and attach a validation link (possibly with unique token for unique email) how do i generate a token so i can store it in database and use it for validating the user later.
(you may also help me with your own approach)