Closed paskuale75 closed 3 years ago
[SOLVED]
step 1 in module "user" config (in classMap array)
'classMap' => [
// add this
'MailService' => app\modules\myModuleName\services\MailService::class
],
step 2 copy and paste /services/mailService.php file from /vendor to custom module folder and extend it
step 3 In extended file, overwrite $viewPath
class MailService extends baseMailService implements ServiceInterface
{
protected $viewPath = 'app/modules/myModuleName/views/mail';
}
.... now I can finally customize the views of the emails, placed in the path "/app/modules/myModuleName/views/mail" !
Can we close this?
Can we close this?
Yes,thanks
What steps will reproduce the problem?
How can overwrite mailer views ?
What is the expected result?
What do you get instead?
continue to refer to vendor views.
Here my mailer.php file content: