title: Laravel Mail queues with Iron.io
body: <p>I have been able to get my Iron.io push queue subscription to work great, but not with mail queues for some reason. In the code below I am pushing a job onto the queue with an email address and username in the <code>$data</code> array. For reasons unknown to me, the email address and username are not getting passed to the Mail function. The job just sits there, failing to send.</p>
  
  <p><strong>FooController.php</strong></p>
  
  <pre><code>&lt;?php
  
  $data = array(
      'email_address' =&gt; Input::get('email'),
      'username'      =&gt; Input::get('username'),
  );
  
  Queue::push('SendEmail@reserve', $data);
  </code></pre>
  
  <p><strong>routes.php</strong></p>
  
  <pre><code>&lt;?php
  
  // iron.io push queue path
  
  Route::post('queue/push', function()
  {
      return Queue::marshal();
  });
  
  
  class SendEmail
  {
      public function reserve($job, $data)
      {
          Mail::send('emails.reserve', $data, function($message)
          {
              $message-&gt;to($data['email_address'], $data['username'])-&gt;subject($data['username'] . ', welcome to RockedIn!');
          });
          $job-&gt;delete();
      }
  }
  ?&gt;
  </code></pre>