title: Mail::queue not sending email
body: <p>I'm stuck with sending emails with queues in Laravel 4. Let me describe my problem:</p>
  
  <p>This works:</p>
  
  <pre><code>Mail::send('emails.validateEmail', array("username" =&gt; Input::get("username"), "code" =&gt; $code), function($message){
  $message-&gt;to(Input::get('email'), Input::get('username'))
      -&gt;subject('Some subject');
  });
  </code></pre>
  
  <p>However this doesn't work:</p>
  
  <pre><code>Mail::queue('emails.validateEmail', array("username" =&gt; Input::get("username"), "code" =&gt; $code), function($message){
      $message-&gt;to(Input::get('email'), Input::get('username'))
          -&gt;subject('Some subject');
      });
  </code></pre>
  
  <p>I created <code>failed_jobs</code> table where I keep all failed jobs from worker and in that table I found this error:</p>
  
  <pre><code>{"job":"mailer@handleQueuedMessage","data":{"view":"emails.validateEmail","data":{"username":"some_username","code":"MMgNSoaFcyGoIy10sIKgkwUOdux3tM"},"callback":"C:38:\"Illuminate\\Support\\SerializableClosure\":155:{a:2:{i:0;s:126:\"function ($message) {\n    $message-&gt;to(\\Input::get('email'), \\Input::get('username'))-&gt;subject('Some subject');\n};\";i:1;a:0:{}}}"}}
  </code></pre>
  
  <p>Also I found this:
  <a href="http://forumsarchive.laravel.io/viewtopic.php?id=12672" rel="nofollow">http://forumsarchive.laravel.io/viewtopic.php?id=12672</a></p>
  
  <p>.. I followed all instructions from previous link but I'm keep getting this error message.</p>
  
  <p>Does anyone knows how to solve this?</p>
  
  <p>EDIT: emails.validateEmail file</p>
  
  <pre><code>Hello {{ $username }}!&lt;br&gt;
  
  &lt;p&gt;some text&lt;/p&gt;&lt;br&gt;
  
  
  &lt;a href="{{ URL::route('validate') }}?code={{ $code }}&amp;username={{ $username }}"&gt;{{ URL::route("validate") }}?code={{ $code }}&amp;username={{ $username }}&lt;/a&gt;&lt;br&gt;&lt;br&gt;
  
  some more text
  </code></pre>