Reputation: 383
I've tried to search the information according to this, but couldn't find any useful ones.. I just created email sending
in Yii2 and the email sends as a "My Application", I guess it's because standard Yii::$app->name
is like that. Could someone tell me how to change it?
Upvotes: 7
Views: 19033
Reputation: 133390
Yii::$app->name value is assigned in your application config
You can change the id and name attribute in your config file
'id' => 'your-applicatio-id',
'name' => 'Your application Name',
these attributesa are store in different file depend by the template you are using
in basic templae you can set these values in
yourapp/confi/web.php
$params = require(__DIR__ . '/params.php');
$config = [
'id' => 'your-id',
'name' => 'Your Name',
......
in advanced template you can set these values in
backend/config/main.php
and in
frontend/config/main.php
You can use it in common config file too common/config/main.php
Upvotes: 23