title: How to send email for all users with cakephp
body: <p>i don't understand how send one email for all users, i do it this in my controller :</p>
  
  <pre><code>// Init
  $data = $this-&gt;request-&gt;data['Email'];
  $d = array(
      'subject' =&gt; $data['subject'],
      'message' =&gt; $data['message']
  );
  
  // QUERY
  $all = $this-&gt;Spoutnik-&gt;find('all', array(
      'conditions' =&gt; array(
          'Spoutnik.role &gt;=' =&gt; '1'
      ),
      'fields' =&gt; array('Spoutnik.email')
  ));
  $this-&gt;set(compact('all'));
  
  // list
  $bcc = '';
  foreach ($all as $user) {
      $bcc .= $user['Spoutnik']['email'].',';
  }
  
  // MAIL
  App::uses('CakeEmail', 'Network/Email');
  $CakeEmail = new CakeEmail('default');
  
  $website_short_name = Configure::read('website.short_name');
  $CakeEmail-&gt;bcc("$bcc");
  $CakeEmail-&gt;subject(''.$website_short_name.' :: '.$d['subject'].'');
  
  $CakeEmail-&gt;viewVars(array(
      'message' =&gt; (''.$d['message'].'')
  ));
  
  $CakeEmail-&gt;emailFormat('html');
  $CakeEmail-&gt;template('message_direct');
  
  // final
  $CakeEmail-&gt;send();
  </code></pre>
  
  <p>But i have error "no valid mail" , and after the liste of user's mail</p>
  
  <p>what is wrong in my code ?</p>