title: pear mail function bcc won't send
body: <p>I copied a code for PEAR mail from a website, and input my data. It works. It sends mail, however, I want to use bcc to send to a lot of people and keep their addresses anonymous, and it will send to the $to recipients, but not the $bcc.</p>
  
  <p>The code:</p>
  
  <pre><code>&lt;?php
  $message = "yay email!";
  require_once("Mail.php");
  $from = 'myaddress@mysite.com ';
  $to = "anadress@gmail.com";
  $bcc = "thepeopleimemailing@yaddayadda.com";
  $subject = " test";
  $body = $message;
  $host = "smtp.mysite.com";
  $username = "myusername";
  $password = "mypassword";
  $headers = array ('From' =&gt; $from,
      'To' =&gt; $to,
      'Cc' =&gt; $cc,
      'Bcc' =&gt; $bcc,
      'Subject' =&gt; $subject
  );
  $recipients = $to;
  
  
  $smtp = Mail::factory('smtp',
      array ('host' =&gt; $host,
          'auth' =&gt; true,
          'username' =&gt; $username,
          'password' =&gt; $password,
          'port' =&gt; '25'
      )
  );
  $mail = $smtp-&gt;send($recipients, $headers, $body);
  if (PEAR::isError($mail)) {
      echo($mail-&gt;getMessage());
  }
  else {
      echo("Message successfully sent!");
  }
  ?&gt;
  </code></pre>
  
  <p>P.s. I read on anther forum that I shouldn't put the headers in an array? I'm having trouble grasping the concept of the headers. What do they do and how should I organize them? I just want a to, from, subject, and bcc.</p>
  
  <p>Thanks!</p>