http://stackoverflow.com/questions/3...k-in-the-email
You need to override the default FOSUserBundle email template.
In app/config/config.yml comment out or delete the 'template' option:
resetting:
email:
# template: email/password_resetting.email.twig
Next, recursively create directories:
app/Resources/FOSUserBundle/views/Resetting/
This is the exact directory structure as in FOSUser vendor directory.
Copy email.txt.twig from vendor/ and place it in:
app/Resources/FOSUserBundle/views/Resetting/email.txt.twig
Now, make all the necessary adjustements in your template.
Remember, the bundle uses translations by default so you might want to change or delete the line in the template:
{% trans_default_domain 'FOSUserBundle' %}
Partager