Hi,
I need to do some mass emailing.
I have an array $unique_emails of 6,400 or so user's email addresses (the number will change as time goes by).
Putting all 6,400 email addresses into bcc: and sending with mail() seems like it wouldn't work.
I'd like to do it in groups of possibly 100 or 500 or something, by putting a string of the first 100 into the bcc: field and sending using mail().
How do I loop through the array correctly?
sort of like this, but with the correct parameters to do 100 at a time:
for ($i = 0; $i < 99 $i++ ) {
gather first 100, put in $o_address string like foo@yahoo.com, foo2@yahoo.com, foo3@yahoo.com
$headers = "From: $from_address\r\n";
$headers .= "Bcc: $to_address\r\n";
mail($to, $subject, $message, $headers);
}
Thanks!