title: Set Mandrill Template Laravel
body: <p>I'm trying to send a Mandrill email in the default Laravel 4 Mailer, and I want to set the template and send the data to Mandrill. I'd rather not use a local file in my Laravel, I have this all set up to work inside of Mandrill. This is how I have it set in Laravel:</p>
  
  <pre><code>    Mail::send('emails.test',[],function($message)
      {
          $message-&gt;to(Input::get('email'), 'John Smith')-&gt;subject('Welcome!');
      });
      return 
  </code></pre>
  
  <p>This sends an email from my "test" view inside of "emails" like it should. In vanilla PHP using the Mandrill library this would work to send to the template I want. </p>
  
  <pre><code>$message = array(
  'subject' =&gt; 'Subject redacted',
  'from_email' =&gt; $main_email,
  'to' =&gt; array(array('email' =&gt; $to_email)),
  'merge_vars' =&gt; array(array(
      'rcpt' =&gt; $to_email,
      'vars' =&gt;
      array(
          array(
              'name' =&gt; 'DETAIL',
              'content' =&gt; $detail),
              array(
              'name' =&gt; 'ERROR_AMOUNT',
              'content' =&gt; '$'.$trans_amount)
              ,
              array(
              'name' =&gt; 'CO_NAME',
              'content' =&gt; $business_name),
  
              array(
              'name' =&gt; 'SMS',
              'content' =&gt; $sms)
  ))));
  
  $template_name = 'Test Email';
  
  $template_content = array(
  array(
      'name' =&gt; 'main',
      )
  );
  
  $response = $mandrill-&gt;messages-&gt;sendTemplate($template_name, $template_content, $message);
  </code></pre>