<?php
return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=residenz',
            'username' => 'pmcdash',
            'password' => 'PmcDashboard123!',
            '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' => false,//set this property to false to send mails to real email addresses
            'transport' => [
                'class' => 'Swift_SmtpTransport',

                'host' => 'smtp.mailgun.org',
                //'username' => 'postmaster@sandbox4e6739b5c9c54d8db9707d798fc64664.mailgun.org',
                //'password' => '464b0b6ef372ac72dec027b735776a07',
                'username' => 'noreply@theresidenzmail.co',
                'password' => 'residenz',
                'port' => '587',
                'encryption' => 'tls',
                ],

        ],

    ],
];
