Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

HELP NEEDED - RE: Newsletter... :-) Rate Topic   - - - - -

 

Posted 27 October 2006 - 03:40 AM #1

I've signed up for a new host (HostGator.com) and have just found out they have in their 'Terms of Service' that users may only email out a max of 200 emails per minute, or they will be bounced and my account suspended. I am setting up a cart for my dad's site (convinced him to give CS-Cart a go as I thought it was great when I got it) however, he has a current subscriber list of over 1000 and it's expected to rise.

So onto the Question :-): How do I make it (so for example) 1 email is sent every 5 seconds? With Cs-Cart continuing until finished.



Here is an extract of the Term I need to conform to:


Anytime you're sending a message no matter how large your e-mail list is you must throttle it. We recommend you throttle it to at the very least sending 1 email every 6 seconds. If the mailing list software you're using does not allow you to throttle you must switch to something else. We recommend phplist which can be found in your control panel under fantastico. If you do not throttle and you try sending let's say 500 emails the server will try sending all 500 in 1 second which is not possible. This will cause the server load to go very high and for the entire server to be sluggish until this process is completed. It is our job to keep the server up and running without being sluggish. Anyone who causes the servers load to go high will be suspended and the process will be terminated. If you choose not to throttle you will most likely be suspended for crashing the server.


Thank you for your help :-) Don't worry... I will actually monitoring this thread unlike some others who just leave it after getting answers off nice people who took the time to reply :-P

 

Posted 27 October 2006 - 05:28 AM #2

This should solve your time restriction. Locate and edit the file addons/news_and_emails/include/admin/newsletters.php. Find and add two lines of code like the code snippet looks below. It is around line 163:

echo "Sending email to <b>$eml</b>...<br>";
fn_send_mail($eml, $settings['Company']['company_newsletter_email'], 'addons/news_and_emails/newsletter_subj.tpl', 'addons/news_and_emails/newsletter_body.tpl', '', $lang_code);
sleep(6);
set_time_limit(30);

Larry
SculptingStudio.com
DigitalOcean VM

Ubuntu 14.04

Nginx


 

Posted 27 October 2006 - 01:39 PM #3

WOW Sculpt - can't believe you figured out that code! Thankyou so much! :-D Will not be able to test it just yet as I am waiting for the new release before I install CS onto the other website (lol, fully licensed! don't worry about that ;-D)

 
  • recedo
  • Senior Member
  • Members
  • Join Date: 24-Apr 06
  • 498 posts

Posted 29 October 2006 - 02:39 AM #4

Perhaps CS could build in an option so you can set amount of emails per minute or something???

I am also tied by a restriction, however I think mine get added to some sort of cue not just bounced - not really looked into it yet as my subscriber list isn't huge (yet!)

Simon