Jump to content

Slowing down the amount of e-mails sent out per hour?


Guest

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

:)

Link to comment
Share on other sites

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