usually on any website after you register they send you an e-mail with an account activation code,
is there somewhere some information/best-practices about this technique ?   
 like about how do you generate them, how do you store them, do you encode or not these activation codes ?