At 17:36 22.11.2002, Cesar Aracena said:
>Now, I usually use a very comfortable way to configure e-mails by
>setting all the $vaiables first and then adding a mail() function at the
>bottom, but I never used a CCO target variable and never less a loop to
>fetch all the addresses... any thoughts?
>By the way, I'm very used to work with FOR loops, so I'll try to keep
>using it. Thanks in advance,

First of all be warned that most MTA's are set to allow only a specific
number of recipients for a single message as an anti-spam feature, so you
should limit the number of recipients accordingly to your MTA setup. If
you're not the admin you should ask how your MTA is configured.

Using mail() you can add additional headers as a fourth parameter. I
personally have never heard of the term "COO" but rather "Bcc", which means
"Blind CC". The above link has an example for Bcc mail that I will quote here.

/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n"; 
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

/* additional headers */
$headers .= "From: Birthday Reminder <[EMAIL PROTECTED]>\r\n";
$headers .= "Cc: [EMAIL PROTECTED]\r\n";
$headers .= "Bcc: [EMAIL PROTECTED]\r\n";

/* and now mail it */
mail($to, $subject, $message, $headers);

In your case, just add up as much as "Bcc" headers as necessary or possble.
Add some fake address as "To", e.g. "Undisclosed-Recipients:;" (add the
colon follwed by a semicolon=, this _should_ work (haven't tested it, but
it _should at least ;->).

   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035

PHP General Mailing List (
To unsubscribe, visit:

  • [PHP] CCO Cesar Aracena
    • Ernest E Vogelsinger

Reply via email to