chaoswar4u Posted July 22, 2009 Posted July 22, 2009 Well I thought its about time to have a mailing system in place for when a member goes inactive however Im faced with a problem that im unsure how to tackle. Im well aware that I can make a system that will Email say people who go inactive over a set amount of time however this is an issue if I wish to Email loads of people that come under this criteria. What im trying to do is send mass Email to utilize some free advertising to members who are inactive for x amount of time however this needs to be done on a databse of about 6000. My problem is a simple timestamp search will have the server try to send mass Emails all at once which in time causes the PHP script to timeout. Is there a method I can use to do this task more effectivly. Many thx in advance for any help. Quote
Lithium Posted July 22, 2009 Posted July 22, 2009 Re: Newsletter send it in "chunks" like 50 at a time. pause the script after each send for some time no less than 10/15 seconds. you can use sleep() or time_sleep_until() to halt it in between sends Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.