title: Laravel 5 and PHPMailer
body: <p>Does anybody have a working example how I can work with <a href="https://github.com/PHPMailer/PHPMailer" rel="noreferrer">PHPMailer</a> in Laravel 5? In Laravel 4 it was quiet simple to use but the same method doesn't work in L5. Here it is what I did in L4:</p>
  
  <p>Added in <code>composer.json</code>:</p>
  
  <pre><code>"phpmailer/phpmailer": "dev-master",
  </code></pre>
  
  <p>And in the <code>controller</code> I've used it like this:</p>
  
  <pre><code>$mail = new PHPMailer(true);
  try {
    $mail-&gt;SMTPAuth(...);
    $mail-&gt;SMTPSecure(...);
    $mail-&gt;Host(...);
    $mail-&gt;port(...);
  
    .
    .
    .
  
    $mail-&gt;MsgHTML($body);
    $mail-&gt;Send();
  } catch (phpmailerException $e) {
    .
    .
  } catch (Exception $e) {
    .
    .
  }
  </code></pre>
  
  <p>But it doesn't work in L5. Any idea? Thanks!</p>