Problem with cronjob, Newsletter Builder and cpanel

Hi,

You can set the number of emails and the frequency and maximum number of e-mails to be sent inside the background mailer itself, at the top of background-mailer.php on line 6 you should see these lines:

  // Mail limits - If your server or host requires it, you can limit mail sending speed below
  $GLOBALS['BACKGROUND_SEND_MAX']     = 80;  // max messages to send in each batch, eg: If a cronjob runs the script every 10 min and this is set to 80, you'll send approx 480 emails an hour
  $GLOBALS['BACKGROUND_SEND_WEB_MAX'] = 25;  // max messages to send when calling mailer through web interface, browser sessions can timeout so set this low (example: 25)
  $GLOBALS['BACKGROUND_SEND_DELAY']   = 0;   // second to wait after sending each message

So if you set the CRON to run every 10 minutes, these default levels should be about right for your limit of 500 emails per hour.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com