Re: can I mail unlimited in one click?

From: Date: Mon, 16 Dec 2002 23:48:44 +0000
Subject: Re: can I mail unlimited in one click?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128489@lists.php.net to get a copy of this message
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/

« previous php.general (#128489) next »