title: Email is not sending in cakephp 3.x in localhost
body: <p>Here I am trying to send the email from localhost.I have configured the smtp server setting in php.ini and sendmail.ini file as well.And my code changes are </p>
  
  <p>app.php </p>
  
  <pre><code>  'EmailTransport' =&gt; [
          'default' =&gt; [
              'className' =&gt; 'Smtp',
              // The following keys are used in SMTP transports
              'host' =&gt; 'ssl://smtp.gmail.com',
              'port' =&gt; 465,
              'timeout' =&gt; 30,
              'username' =&gt; '******',
              'password' =&gt; '********',
             // 'client' =&gt; null,
             // 'tls' =&gt; null,
          ],
      ],
  'Email' =&gt; [
          'default' =&gt; [
              'transport' =&gt; 'default',
              'from' =&gt; '**********',
          //'charset' =&gt; 'utf-8',
          //'headerCharset' =&gt; 'utf-8',
          ],
      ],
  </code></pre>
  
  <p>Controller code.</p>
  
  <pre><code>$email = new Email('default');
      try {
          $res = $email-&gt;from('*****@**.**')
                -&gt;to(['*****@**.**' =&gt; 'My Website'])
                -&gt;subject('Tsting')                   
                -&gt;send("hiii this is for testing ");
  
      } catch (Exception $e) {
  
          echo 'Exception : ',  $e-&gt;getMessage(), "\n";
  
      }
  </code></pre>