PHPGuru
1-30-04, 01:02 AM
Let's say that you have a script to send e-mails using mail() function. You send out one e-mail at a time using the function in the loop. When you are done, you finish.
+++++++++++++++++++++++++++++++++++++++++++++
ex. (to get the idea, not the actual working script)
$email_address_list = array of maybe 1000 e-mail addresses.
for ($i = 0; $i < sizeof($email_address_list); $i++)
{
mail($email_address[$i], "subject", "body", "header");
}
print a message that the mail was sent to all 1000 e-mail addresses.
+++++++++++++++++++++++++++++++++++++++++++++
Now, here is the question:
How many e-mails can you possibly send using mail() in the loop before you get a timeout problem?? If there is a limitation, then is there a way to work around with this thing??
+++++++++++++++++++++++++++++++++++++++++++++
ex. (to get the idea, not the actual working script)
$email_address_list = array of maybe 1000 e-mail addresses.
for ($i = 0; $i < sizeof($email_address_list); $i++)
{
mail($email_address[$i], "subject", "body", "header");
}
print a message that the mail was sent to all 1000 e-mail addresses.
+++++++++++++++++++++++++++++++++++++++++++++
Now, here is the question:
How many e-mails can you possibly send using mail() in the loop before you get a timeout problem?? If there is a limitation, then is there a way to work around with this thing??