Hello guys
I have to send HTML email to over 1000 email addresses and I believe that at some point server will stop sending them even if my script works perfect on fewer email addresses. Basically I am looping through an array like this
[PHP]
$message = "some html";
$emails = array("email1@e xample.com", "email2@example .com",.... );
foreach($emails _array as $email){
$headers = 'MIME-Version: 1.0";
$headers .= 'Content-type: text/html; charset=iso-8859-1";
$headers .= 'To: $email' . "\r\n";
$headers .= 'From: Buldog Promo<name@exam ple.com>' ";
mail($email, $subject, $message, $headers);
}
[/PHP]
My question is:
What is max number of elements array $emails should hold?
OR
Do you know way around this problem
Thank you for your Help
I have to send HTML email to over 1000 email addresses and I believe that at some point server will stop sending them even if my script works perfect on fewer email addresses. Basically I am looping through an array like this
[PHP]
$message = "some html";
$emails = array("email1@e xample.com", "email2@example .com",.... );
foreach($emails _array as $email){
$headers = 'MIME-Version: 1.0";
$headers .= 'Content-type: text/html; charset=iso-8859-1";
$headers .= 'To: $email' . "\r\n";
$headers .= 'From: Buldog Promo<name@exam ple.com>' ";
mail($email, $subject, $message, $headers);
}
[/PHP]
My question is:
What is max number of elements array $emails should hold?
OR
Do you know way around this problem
Thank you for your Help
Comment