title: Laravel - How to send email to all users
body: <p>Im struggling to make a code that sends email to my subscribed users. I want to pass body to view according to users default language, can anyone help me ?</p>
  
  <p>My code:</p>
  
  <pre><code>if($newsletter-&gt;save())
              {
                  //get users to send to
                  $users = User::where('newsletter', '=', '1')-&gt;Where('activated', '=', '1')-&gt;get();
  
                  //Send to all users subscribed
                  foreach($users as $user)
                  {
                      //set info according to user default lang
                      if($user-&gt;default_lang == 'pt')
                      {
                          $body = $newsletter_pt;
                          $subject = Input::get('subject_PT');
                      }
                      elseif($user-&gt;default_lang == 'de')
                      {
                          $body = $newsletter_de;
                          Input::get('subject_DE');
                      }
  
                      $data = array(
                          'body' =&gt; $body,
                          'subject' =&gt; $subject
                      );
  
                      $from_name = Input::get('from_name');
                      $from_email = Input::get('from_email');
  
                      //QUEUE The Newsletters to send
                      Mail::queue('admin.newsletters.template1', $data, function($message) use ($user, $subject, $from_name, $from_email)
                      {
                          $message-&gt;from($from_email, $from_name);
                          $message-&gt;bcc($user-&gt;email, $user-&gt;name);
                          $message-&gt;subject($subject);
                      });
  
                  } //end foreach
  
                  return Redirect::To('admin/newsletters')-&gt;with('message', array("1" =&gt; "Newsletter enviada com sucesso !"));
              }
  </code></pre>
  
  <p>Thanks a lot ;)</p>