Jump to content

Mass E-Mail problem


mforan

Recommended Posts

hi there, i run an online game. my problem is that i need to keep in contact with members that have once played the game before.

so basically, i need to be emailing around abouts 8000 users.

i understand il probably need to use an array to do this. the main problem i have is that, mailing 8000 people just isnt really gunna work.

 

is there anyway that i can send the emails with some kind of delay, as to avoid emails not being sent etc?

 

 

basically i just need a mass email solution that i can code myself to pull email addresses with the mysql database and then email them users.

 

the basic idea is to mail people and tell them, to check out the game once again, like many sites do!

 

 

any idea anyone, would be greatly appreciated!

 

mike.

Link to comment
Share on other sites

only issue is that the realsitic sleep for mail server to "calm down" is 30 seconds you say 100 emails a batch across 8000 users  your at a 40 minute script and most of the time your server administration won't let that happen.  Cron makes a strong choice here, but more complex to set up.  As you can cron say 500 an hour and spread it out more

Link to comment
Share on other sites

how would a cron do this then?  im a bit of an ameutuer when it comes toi cron jobs lol.

 

lets just say i want to grab all the "email" addresses from the table "free".... and send it how you said, like 500 an hour.

 

how would be the best way to cron that ???

Link to comment
Share on other sites

the script I wrote was a tad bit complicated to just "explain" but basically it involved getting the list of users to send to putting those in a temporary table and then send them in order of the date they were put in this temp table.  THe cron job runs every X hours/mins/days/weeks etc sending Y emails out from the top of the list.  If the list is clear it doesn't send any more but it still runs (no big deal)

Link to comment
Share on other sites

@jamescarvin

 

They will have there own email exchange setup to deal with this. Therefore they can deal with the high demand. I persume mforan is trying to do this through a remote host. Therefore he will have limited server capabilities. Whereas a large company will have a fleet of servers to send emails

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.