I have a error with yii2, I can't send emails via yii with a email account. If my password is correct :(
This is my code:

**web.php**

```
'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'transport' => [
            'class'      => 'Swift_SmtpTransport',
            'host'       => 'smtp.gmail.com',
            'username'   => 'user@hya.com.mx',
            'password'   => 'passwd',
            'port'       => '587',
            'encryption' => 'tls',
            ],
        ],
        'log'

```

**Controller.php**

```
Yii::$app -> mailer -> compose()
          -> setFrom('users@hya.com.mx')
          -> setTo('jhon@hya.com.mx')
          -> setSubject('Test')
          -> setTextBody('Plain text content')
          -> setHtmlBody('It is a test')
          -> send();

```

![This is my error](https://i.stack.imgur.com/uyNLQ.png)