update example to actual config of template
This commit is contained in:
@ -18,7 +18,7 @@ values:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Actually, the only thing required is the `fromEmail` value.
|
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
|
```php
|
||||||
...
|
...
|
||||||
'modules' => [
|
'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,
|
'class' => Da\User\Module::class,
|
||||||
'mailParams' => [
|
'mailParams' => [
|
||||||
'fromEmail' => function() {
|
'fromEmail' => function() {
|
||||||
return [Yii::$app->params['supportEmail'] => Yii::t('app', '{0} robot', Yii::$app->name)];
|
return [Yii::$app->params['senderEmail'] => Yii::$app->params['senderName']];
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user