Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change template of confirmation email in FOSUserBundle?

I need to change template of confirmation email in FOSUserBundle. I have this settings, but it doesn't work:

fos_user:
    db_driver: orm
    firewall_name: main
    user_class: Acme\UserBundle\Entity\User
    registration:
        confirmation:
            enabled:    true
        email:
            template: AcmeUserBundle:User:confirm.email.twig

Error is:

Unrecognized options "email" under "fos_user.registration"
like image 527
Mark Cibor Avatar asked Feb 17 '12 14:02

Mark Cibor


1 Answers

Do you mean confirmation email template?

    confirmation:
        enabled:    true
        template:   MgpAppBundle:Registration:email.txt.twig
like image 197
meze Avatar answered Oct 10 '22 23:10

meze