Reputation: 5082
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?
Upvotes: 3
Views: 3051
Reputation: 13167
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_CONFIRMED
Hope this helps.
Upvotes: 2