Hi,
I know if you run a script with the mail() function in a loop to 400+ subscribed people it is highly likely the script will time out.
Does anybody have any ideas as to how to go about building a system to bulk email thousands of people. I have a dedicated Free BSD server to play with.
CHeers for any advice,
Al
$sec = "999"; set_time_limit($sec);
remember! give time for mail server to send mails
for($a=0;$a<count($res);$a++) { if($a != 0 && fmod($a,10) == 0) { sleep(2); } /// send mail here }
Thanks I will try that. 🙂
The other thing to remember is you don't have to keep your browser page open while the script is running (although this scares me to close it before it finishes running). If you set a HUGE time out limit and run the script and then close your browser the idea is that the script WILL keep running.
Awsome.... never know that one was possible 😃