title: Sending Mail using CakePHP 3.0
body: <p>I am developing a website with new version 3.0 of CakePHP Framework. I am working on localhost and would like to send an email after a user has filled a form. Below is the code in my controller to send the email.</p>
  
  <pre><code>public function index(){
      if ($this-&gt;request-&gt;is('post'){
         $email = new Email();
         $email-&gt;from([$this-&gt;request-&gt;data["sender"] =&gt; "Sender"]
               -&gt;to("myEmail@hotmail.com")
               -&gt;subject($this-&gt;request-&gt;data["Subject"])
               -&gt;send($this-&gt;request-&gt;data["message"]);
      }
  }
  </code></pre>
  
  <p>When this code is executed nothing happen, no error, no message in my mailbox. I have seen that it exist in cakephp3.0 a class called <code>DebugTransport</code> but I don't know how to use it in order to debug my code. Someone has already use it ?</p>