I have a problem my webmaster can not fix this its to advanced for him. The 200 limit is per hour. I recommend you set the mailing script to send 33 messages every 10 minutes, this way you will come just under the 200 limit in an hour's time, and won't cause high load spikes while processing the list. Thanks for choosing HostGator! I have a few member sites that sends out more then that. Any suggestion on a script / code that can fix a timer or point me to where he can read in to it ?
Why don't you just send 200 all at once and wait an hour before running the script again? Or if you want a script to be running in the background all the time, just send one email every 19 seconds and you won't go over the limit. As for a timer, it depends on what the script looks like. sleep() might be all you need.
its a members list it will run all in the same time there is no option for stop it. When i click send it start sending to all over 1000 people until it finish. What is this Sleep?
You have to break your email list up into chunks, ideally in a database (mysql), and use a cron task (which I know is available at HostGator) and send the emails in batches. If you go to phpmailer.sourceforge.net you'll find a great php class for sending email and they have a simple code example that pulls email from a database to send. It doesn't go so far as to show how to set up the cron, but that's not very difficult. Any half decent programmer can do it for you. But IMO if you're going to build a serious biz online and your big asset is your opt in email list then you really need to strongly consider a professional autoresponder.
I have auto responder for some pages. But like my Bangkoksexy.com i have a more then 1000 members and need sometimes to send them message in the same time. But i guess you are right make 100 emails in advance and ask the auto responder to send them out I checked the site you said but i can not see anything about cron there. Could you send me the right away? I do not need the script just a part of it sending emails and paus them. Some one have a idea about Sleep ?
As I mentioned... Just throw a LIMIT at the end of your sql query to grab X number of emails, then store the value of where you left off in another table. Have the cron setup to hit this script every so often (depending on the math involved with the number of emails you're sending at a go) and you're done.
Problem is i have to Translate all to Thai and he does not understand it. To advanced for him right now. This is the sending code can i do anything with it? Some one know where to put the sleep or something? if(isset($title)) { $sql="select email from members"; $adminEmail=getSetting("ADMINEMAIL"); $res=mysql_query($sql); while($obj=mysql_fetch_object($res)) { if($obj->email!="") { sendHTMLmail($adminEmail,$obj->email,$title,$newsmessage); } } $msg="success"; } Thanks a bunch