I have activated in the FOSUserBundle the email confirmation. It allows users to receive a link by mail after they registration.
registration:
confirmation:
enabled: true
But It's not really what I want. I just want to send a welcome mail to confirm their registration (with no confirmation link).
Is it possible to configurate that in the FOSUserBundle?
You can set a custom template for the email sent after registration:
confirmation:
enabled: true
template: YourUserBundle:Registration:email.txt.twig
Copy the default FOSUserBundle:Registration:email.txt.twig and remove the confirmation link.
But as the confirmation is set to true, your users will not be enabled by default.
So, if you want disable the whole confirmation feature, you can:
FOS\UserBundle\Controller\RegistrationController to send a custom e-mailFOSUserEvents::REGISTRATION_CONFIRMEDHope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With