Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...