Send email containing login and pass after registration
问题 I am currently working on a Symfony2 project for managing user I installed the bundle FosUserBundle which is functional but I can not find how to send an email containing the username and password immediately after creating user, as I said I have two user: admin and user type, and it is the admin who will create the users with a form of creation that is the form of FOS Registration, changing between the two kind user is only the roles. 回答1: You could hook into the EventDispatcher and send