title: Yii2 cannot send email in yii2
body: <p>I'm using yii2 and I'm totally new to this can someone help me with sending emails in this framework I'm using swiftmailer and have set the configurations as:</p>
  
  <pre><code>'mailer' =&gt; [
          'class' =&gt; 'yii\swiftmailer\Mailer',
          'useFileTransport' =&gt; false,
  ]
  </code></pre>