PEAR Mail - $recipients vs. $headers['to']

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hi there,

So, what's the story here?  The manual says I can use an array or csv
in the $recipients, but using the same array in the $headers[to] gives
me an

It works, and both joe and larry get the mail, but I guess I'm using
the $headers[to] incorrectly...

$mail_object =& Mail::factory('mail', $params);

$to = array('','');

$headers['From']    = '';
$headers['To']      = $to;
$recipients      = $to;
$headers['Subject'] = "website form";

$body = $message;

$mail_object->send($recipients, $headers, $body);

thanks for your time,

Site Timeline