Hi

The PHP manual does not tell me anything about it so I thought this is the best place to ask.

Does the PHP Mail function allow multiple recipent either in TO or CC or BCC separated by comma?

For example


Code PHP:
<?php
mail('nobody@example.com,me@myserver.com,you@gmail.com,sam@email.com', 'the subject', 'the message', null,
   '-fwebmaster@example.com');
?>

OR

Code PHP:
<?php
 
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
 
// Additional headers
$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
$headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
$headers .= 'Cc: [email]birthdayarchive@example.com[/email]' . "\r\n";
$headers .= 'Bcc: [email]birthdaycheck@example.com,me@myserver.com,you@gmail.com,sam@email.com[/email]' . "\r\n";
 
// Mail it
mail($to, $subject, $message, $headers);
?>
 
 
Thanks for your input.