I recently implemented implemented fos/user-bundle, the user can only connect to the website only if he receives a confirmation mail. So I implemented the mail
fos/user-bundle