Hello, Just wondering, With my mass email program, should i use sleep to wait a second after each email to reduce the sudden email load? Also, With my cron job, there are around 15 queries, which are in a while loop over 1500 times. As you can imagine, do you suggest i use a sleep function here? Thanks!
You could. I don't know the practical application of using it in that manner (for the mail). I've always had it set to mail with the cron job, based upon the server limit (usually 50 at once). Maybe someone else knows more about mailing. Tell us a bit more about your queries. There should be some way to not do that.
It's for a multiforum platform. Multiple databases over a couple of web servers. It's the easiest way to do it. Thanks.
That should work so it doesn't all get queued up at once.. that being said I'm not sure if 1 second after each e-mail is enough.. then again unless there's some sort of anti-spam measure it'll just queue up and send it ASAP so sleeping isn't needed.
Yes, it's a good idea to use the sleep function to send those emails. My little brother wanted once me to spam someones email box and the server overloaded because I used it too much About the cron job, yes I would use it too, but not after every loop, that will slow down the progress too much, sleep a few seconds after around 30~50 times??