title: debugging email not working in cakephp
body: <p>i am trying to debug my email in cakephp since i cannot send a test mail. However, everything i do gives me just a blank web page, even the debug. I already set the debug mode to 2. Below are my codes:</p>
  
  <p>C:\xampp\htdocs\NewFolder\app\webroot\email\app\controllersmailer_controller.php </p>
  
  <pre><code>&lt;?php  
  class MailerController extends AppController { 
  
      var $name = 'Mailer'; 
      //Not using a model 
      var $uses = ''; 
      //The built in Cake Mailer 
      var $components = array('Email'); 
  
      $this-&gt;Email-&gt;delivery = 'debug';
      /** 
       * Send a text string as email body 
       */ 
      function sendSimpleMail() { 
          //$this-&gt;Email-&gt;to = 'yourlogin@localhost'; 
          $this-&gt;Email-&gt;to = 'csorila17@gmail.com'; 
          $this-&gt;Email-&gt;subject = 'Cake test simple email'; 
          $this-&gt;Email-&gt;replyTo = 'noreply@example.com'; 
          $this-&gt;Email-&gt;from = 'Cake Test Account &lt;noreply@example.com&gt;'; 
          //Set the body of the mail as we send it. 
          //Note: the text can be an array, each element will appear as a 
          //seperate line in the message body. 
          if ( $this-&gt;Email-&gt;send('Here is the body of the email') ) { 
              $this-&gt;Session-&gt;setFlash('Simple email sent'); 
          } else { 
              $this-&gt;Session-&gt;setFlash('Simple email not sent'); 
          } 
          //$this-&gt;redirect('/'); 
          $this-&gt;Email-&gt;delivery = 'debug';
  
      } 
  } 
  ?&gt; 
  </code></pre>
  
  <p>C:\xampp\htdocs\NewFolder\app\webroot\email\app\views\layouts\default.ctp</p>
  
  <pre><code>&lt;?php echo $this-&gt;Session-&gt;flash(); ?&gt;
  &lt;?php echo $this-&gt;Session-&gt;flash('email'); ?&gt;
  </code></pre>
  
  <p>C:\xampp\htdocs\NewFolder\app\webroot\email\app\views\layouts\email\html\default.ctp</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt; 
  &lt;html&gt; 
  &lt;body&gt; 
  &lt;?php echo $content_for_layout; ?&gt; 
  &lt;?php echo $this-&gt;Session-&gt;flash(); ?&gt;
  &lt;?php echo $this-&gt;Session-&gt;flash('email'); ?&gt;
  &lt;/body&gt; 
  &lt;/html&gt; 
  </code></pre>
  
  <p>C:\xampp\htdocs\NewFolder\app\webroot\email\app\views\layouts\email\text\default.ctp</p>
  
  <pre><code>&lt;?php echo $content_for_layout; ?&gt; 
  </code></pre>