title: Laravel SMTP Email
body: <p>Start working with Laravel 4.2 I tried to send email using Gmail STMP server. Below is my app/config/mail.php.</p>
  
  <pre><code>return array(
      'driver' =&gt; 'smtp',
      'host' =&gt; 'smtp.gmail.com',
      'port' =&gt; 465,
      'from' =&gt; array('address' =&gt; 'sample_address@gmail.com', 'name' =&gt; 'Sample'),
      'encryption' =&gt; 'tls',
      'username' =&gt; 'sample_address@gmail.com',
      'password' =&gt; 'sample password',
      'sendmail' =&gt; '/usr/sbin/sendmail -bs',
      'pretend' =&gt; false,
  );
  </code></pre>
  
  <p>Below is my php code.</p>
  
  <pre><code>&lt;!-- app/views/emails/welcome.php --&gt;
  Mail::send('emails.welcome', 'Laravel Admin', function($msg) {
     $msg-&gt;from('sample_address@gmail.com', 'Laravel Admin');
     $msg-&gt;to('sample_receiver@gmail.com');
  });
  </code></pre>
  
  <p>But it does not work. I have already configured my XAMPP php.ini on my MAC OSX. It only works when sending a normal PHP mail, not SMTP. The error message that I've got from Laravel on the view page is '<strong>Error in exception handler</strong>'. I would like to see more error information but I don't know how to get more info. What is wrong with my code? What else do I need to do or configure? Thank you!</p>