From bb23b8178555f5732b6be72f67655942294551e0 Mon Sep 17 00:00:00 2001 From: bscheshirwork Date: Thu, 5 Mar 2020 07:56:06 +0300 Subject: [PATCH] update example to actual config of template --- docs/installation/mailer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installation/mailer.md b/docs/installation/mailer.md index 9a4a73d..870db41 100644 --- a/docs/installation/mailer.md +++ b/docs/installation/mailer.md @@ -18,7 +18,7 @@ values: ``` Actually, the only thing required is the `fromEmail` value. -If you want to set it the same as supportEmail from your config params (like yii2-app-advanced template): +If you want to set it the same as senderEmail and senderName from your config params (like yii2-app-advanced template): ```php ... 'modules' => [ @@ -26,7 +26,7 @@ If you want to set it the same as supportEmail from your config params (like yii 'class' => Da\User\Module::class, 'mailParams' => [ 'fromEmail' => function() { - return [Yii::$app->params['supportEmail'] => Yii::t('app', '{0} robot', Yii::$app->name)]; + return [Yii::$app->params['senderEmail'] => Yii::$app->params['senderName']]; } ], ],