MHF MHF - 3 months ago 63
PHP Question

Yii2 password reset does not work

I use Windows and Yii and xampp with php7.1.4.
When logging in, I click on reset it link and i'm entering my email and send, I encounter this error:


Process could not be started [The system cannot find the path specified.

My common/config/main-local.php is:

'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,

Other settings and files are in the default mode.
what is the problem? Please guide me

Answer Source

Seems that in your config is missing the transport config
eg: using as transport (you should choose the trasport available for your host)

    'mailer' => [
        'class' => 'yii\swiftmailer\Mailer',
        'viewPath' => '@common/mail',
        'useFileTransport' => false,//set this property to false to send mails to real email addresses

        'transport' => [
            'class' => 'Swift_SmtpTransport',
            'host' => '',
            'username' => '',
            'password' => 'your_password',
            'port' => '587',
            'encryption' => 'tls',
            'streamOptions' => [
                'ssl' => [
                    'verify_peer' => false,
                    'allow_self_signed' => true


Everything is right now

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download