'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@app/mail',
'messageConfig' => [
'charset' => 'UTF-8',
'from' => ['noreply@site.com' => 'Site Name'],
],
'useFileTransport' => true,
],