Hi,

I wonder if I can mail 300 customers in one click?

part of script:

while($listrow = mysql_fetch_array($listresult))  {

    $recipient = $listrow[epost];
    $subject = "$subj";
    $message = "$mess";
    $headers .= "From: $admail\n";
    $headers .= "Reply-To: $admail\n";
    $headers .= "X-Mailer: PHP\n";
    mail($recipient, $subject, $message, $headers);
}

or is there a limit?

Thanks for any help
Jan Grafstrom

Why not just put all the email address into the BCC header field?


$headers .= "Bcc: $email[0], $email[1],....,$email[n]\n";


Of course the BCC list could be filled programmatically...

--
Kyle Gibson
admin(at)frozenonline.com
http://www.frozenonline.com/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to