Guest Posted October 8, 2007 Share Posted October 8, 2007 Hello. I found out that my web host (Bluehost) limits the amount of e-mails per hour I can send out. Right now the limit was set to 50 per hour but I had them raise it to 500 per hour. However my actual store's subscription listing is about 1000 customers. Is it possible to slow down the rate CubeCart will send out the newsletter/bulk e-mails so I won't hit my 500 per hour limit? Thanks! -Tim H. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 9, 2007 Share Posted October 9, 2007 If you can code PHP, look in the file: \admin\customers\send.php at around line 125. I think this is where the looping occurs to spit out the e-mails. Maybe PHP has a Wait Until (trigger) type of command that you can introduce a pause of a certain kind. I was thinking wait until the time cycles past the sixty second mark, then execute the iteration. Like: curSeconds = Seconds(Now()); If Seconds(Now()) < curSeconds Then (do it) //will only happen when seconds goes past 59 but, of course, coded properly in PHP. This should limit the sending to one per minute. There may be other free (low or reasonable cost) solutions where you can feed your mail list to it. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 11, 2007 Share Posted October 11, 2007 Thanks bsmither .. I did find out there is a PHP function that should work: sleep(x); x equalings the number of seconds you want the PHP code to pause. So I'm thinking this might work: sleep(8); $result = $mail->send(array($emailList[$i]['email']), $config['mailMethod']); This should put one e-mail every 8 seconds, giving me 450 e-mails per hour. I'll give this a try this evening. -Tim Quote Link to comment Share on other sites More sharing options...
Guest Posted October 15, 2007 Share Posted October 15, 2007 Thanks bsmither .. I did find out there is a PHP function that should work: sleep(x); x equalings the number of seconds you want the PHP code to pause. So I'm thinking this might work: sleep(8); $result = $mail->send(array($emailList[$i]['email']), $config['mailMethod']); This should put one e-mail every 8 seconds, giving me 450 e-mails per hour. I'll give this a try this evening. -Tim Well the sleep function sort of works... However it would freeze up my connection between my domain and computer the entire delay. Any I was not sure if it was locking up my entire domain (affecting online customers) while the 'sleep' function was active. So I stopped the process and only was able to send out a few newletters.. :) Quote Link to comment Share on other sites More sharing options...
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.