title: multiple mail recipients with CakePHP using bcc (the right insert method)
body: <p>i use the php framework cakePHP to create a web app. There,i want the user to insert in a field as many email addresses as he desires and by hitting the Send button,a message would be emailed to all of the emails.</p>
  
  <p>To achieve that,i have to use bcc.</p>
  
  <p>My problem is that i do not know how can i "read" from the user his email addresses in the right form so that i use them in bcc.</p>
  
  <p>Till now,i have a variable $to = $this->request->data['Mail']['to']; ,where 'Mail' is my model name,and in case the user inserts just one email address,the recipient receives the mail correctly. But how can i enable it to receive multiple email addresses (maybe in an array??) so that i use the variable $to at this piece of code:</p>
  
  <pre><code>$Email = new CakeEmail();
  
  $Email-&gt;from($from)
      -&gt;**bcc($to)**
      -&gt;subject($subject)
      -&gt;send($message);
  </code></pre>
  
  <p>and help is welcomed :)</p>
  
  <p>thank you in advance!</p>