title: Sending Mails in a a foreach loop in Laravel
body: <p>I have this requirement, where I need to send separate mails to all the users in TO and CC header from my application. </p>
  
  <p>So, for example, I add abc@xyz.com in TO; asd@fgh.com in, qwe@rty.com in CC. There are three email-ids here, cumulative of TO and CC. </p>
  
  <p>I need to send a separate mail to all three. So, abc@xyz.com will only see his name in the Mail header, and so on for CC recipients. </p>
  
  <p>My approach was to merge all the emails in an array, and then run a foreach loop, something like this:</p>
  
  <pre><code>foreach($emails as $email) {
      Mail::send(..... 
      {
          $message-&gt;to($email);
      });
  }
  </code></pre>
  
  <p>Is this a better way to do this? Or any other much better approach that I can follow?</p>