title: Difference between Laravel Mail vs swiftmailer
body: <p>This is probably a stupid question but I am using Laravel 4.2. I am using Laravel to send emails and I know Laravel comes with SwiftMailer. If I am calling Mail::send like the codes below, am I calling SwiftMailer's Mail library or am I calling PHP's Mail library? So, what's the diferrence the two?</p>
  
  <p>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; 'my_gmail_username.gmail.com', 'name' =&gt; 'Test Email'),
      'encryption' =&gt; 'ssl',
      'username' =&gt; 'my_gmail_username',
      'password' =&gt; 'my_gmail_password',
      'sendmail' =&gt; '/usr/sbin/sendmail -bs',
  </code></pre>
  
  <p>app/routes.php</p>
  
  <pre><code>namespace MyMail;    
  use Mail;
  
  Mail::send('mail_template1', array('name' =&gt; 'Laravel'), function($message) use ($arr_index)
              {
                  $message-&gt;to('name@email.com', 'name')
                          -&gt;from('different_email@gmail.com', 'Another name')
                          -&gt;subject('Laravel Email Test 1');  
              });
  </code></pre>