How To Override Dektrium Mail View?

Has anyone experience in overriding/customizing the mail out for Dektrium signup?

I have the registration views customized but not the mailouts.

http://yii2-user.readthedocs.org/en/latest/basics/overriding-views.html

As the mailout is not a standard ‘view’ i imagine that it may not go through the same way of getting processed?

Regards,

Dennis

http://yii2-user.readthedocs.org/en/latest/basics/overriding-views.html

Hi - I am wondering if anyone ever found a solution to this issue. Although I have used the process outlined in the dektrium docs to override other views, I too am unable to use the same steps to override the mail views.

Please let me know if there is a solution for this.

Thank you.

Hi, try to override Mailer.php "viewPath" from config like this:




    'components' => [

        ...

        'mailer' => [

            'viewPath' => '@frontend/views/user/mail'

        ],

    ],



[color="#006400"]/* Moved from "General Discussions" to "Extensions" */[/color]

For me this works well:




    'modules' => [

        'user' => [

            'class' => 'dektrium\user\Module',

            'mailer' => [

                'viewPath' => '@frontend/views/user/mail',

            ],

        ],

    ],