[ 'db' => [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=opendistrib_test', 'username' => 'root', 'password' => 'root', 'charset' => 'utf8', ], 'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', 'viewPath' => '@common/mail', // send all mails to a file by default. You have to set // 'useFileTransport' to false and configure a transport // for the mailer to send real emails. 'useFileTransport' => true, 'transport' => [ 'class' => 'Swift_SmtpTransport', 'host' => 'smtp-laclic.alwaysdata.net', 'username' => 'nepasrepondre@laclic.fr', 'password' => 'UPdz4ain73u3T3S74z2MHG9gUKnu6Qq6', 'port' => '25', //'encryption' => 'tls', ], ], ], ];