title: Sending mail to multiple recipients with sendgrid and codeigniter
body: <p>I recently signed up for SendGrid and took a look at their integration into CodeIgniter. </p>
  
  <p>They recommend doing the following to send mail out:</p>
  
  <pre><code> $this-&gt;email-&gt;initialize(array(
        'protocol' =&gt; 'smtp',
        'smtp_host' =&gt; 'smtp.sendgrid.net',
        'smtp_user' =&gt; 'sendgridusername',
        'smtp_pass' =&gt; 'sendgridpassword',
        'smtp_port' =&gt; 587,
        'crlf' =&gt; "\r\n",
        'newline' =&gt; "\r\n"
      ));
  
      $this-&gt;email-&gt;from('your@example.com', 'Your Name');
      $this-&gt;email-&gt;to('someone@example.com');
      $this-&gt;email-&gt;cc('another@another-example.com');
      $this-&gt;email-&gt;bcc('them@their-example.com');
      $this-&gt;email-&gt;subject('Email Test');
      $this-&gt;email-&gt;message('Testing the email class.');
      $this-&gt;email-&gt;send();
  
      echo $this-&gt;email-&gt;print_debugger();
  </code></pre>
  
  <p>This seems like a nice solution for sending out emails to single individuals but what if I have an email that I want to send to a whole bunch of people? Is it possible to send either the "to" or the "bcc" in as an array? </p>
  
  <p>Is there a different integration method preferred for using SendGrid with CI? </p>
  
  <p>Thanks!</p>