Urgent - How to control number of emails per minute?

Hi,
I am trying hard to set the Mail Batch Size / Throttle to send only 50 emails per minute but it keeps shooting up to 135 emails per minute

My cron runs every 15 minutes and my configuration is this

define(‘MANUALLY_PROCESS_QUEUE’, 0);

define(‘MAX_PROCESS_MESSAGE’, 1);

define(‘PROCESSCAMPAIGNS_PARALLEL’,0);

define(“MAILQUEUE_BATCH_SIZE”,5);

define(“MAILQUEUE_BATCH_PERIOD”,60);

define(‘MAILQUEUE_THROTTLE’,30);

define(‘MAILQUEUE_AUTOTHROTTLE’, 0);

define(‘USE_DOMAIN_THROTTLE’, 1);
define(‘DOMAIN_BATCH_SIZE’, 15);
define(‘DOMAIN_BATCH_PERIOD’, 60);

define(‘DOMAIN_AUTO_THROTTLE’, 1);

define(‘MAX_PROCESSQUEUE_TIME’, 1);

Request help please.

Another issue I face is that, once the cron command executes in the 15th minute, the mails keep flowing continuously every minute till the next cron job - how is that even possible?
Mail incrementing / sending never stops

When I try to Process Queue manually, the issue is the same - it oversends emails - and the error mentions

134 messages sent in 60.08 seconds (8029 msgs/hr)

Finished this run

Less than batch size were sent, so reloading imminently

  • What does it mean, less than batch sent so it reloads?

@santosh19 Your results do not match the config settings. Have you changed the config.php file?

@duncanc

Thank you so much for the response - This has been troubling me all day and the last batch report I pasted was after the values were modified - here is the recent config values of the Queue and Load management

define(‘MANUALLY_PROCESS_QUEUE’, 1);
define(‘MAILQUEUE_BATCH_SIZE’, 10);
define(‘MAILQUEUE_BATCH_PERIOD’, 120);
define(‘MAILQUEUE_THROTTLE’, 5);
define(‘USE_DOMAIN_THROTTLE’, 0);
define(‘DOMAIN_BATCH_SIZE’, 15);
define(‘DOMAIN_BATCH_PERIOD’, 120);

I have commented the others under this section as I feared those were causing the increase - but it was in vain -

Once the cron triggers on the 15th minute, the mailing starts and never stops and sends about 1000 emails in 10 minutes (130 emails per minute)

Please help

@santosh19 Which file have you changed for the settings? You must change config.php not config_extended.php.

Thanks again for your response @duncanc

I see these settings in config_extended.php and there is no batch processing in config.php - Could this be an error? Should I copy the entire settings of Queue and Load management into config.php and remove them from config_extended.php?

If the above be the case, does the above values restrict mail sending to 50 per minute?

My php ver 3.6.12

@santosh19 You need to copy the settings that you want to use into config.php. This is explained at the beginning of the config.php file

* The minimum requirements to get phpList working are in this file.
* If you are interested in tweaking more options, check out the config_extended.php file
* or visit http://resources.phplist.com/system/config
*
* ** NOTE: To use options from config_extended.php, you need to copy them to this file **

Thank you - This helped to control - but I am stuck with the opposite now –

The script only sends 2 emails per minute (running via cron every minute) and it refuses to send beyond that. Below is my cron output and settings

phpList - phpList version 3.6.12 (c) 2000-2024 phpList Ltd, https://www.phplist.com
phpList - Recently sent : 0
phpList - Started [0.0018300000] (122)
phpList - Sending in batches of 1 emails [0.0001990000] (123)
phpList - Processing has started, [0.0004850000] (126)
phpList - One campaign to process. [0.0004010000] (128)
phpList - Processing campaign 7 [0.0029850000] (145)
phpList - Looking for subscribers [0.0006730000] (150)
phpList - Found them: 19886 to process [0.1170550000] (156)
phpList - sent 1 ETA Sun 22 Sep 10:28 sending 6140 msg/hr
phpList - sent 2 ETA Sun 22 Sep 10:08 sending 6855 msg/hr
phpList - queue processing has exceeded maximum processing time1
phpList - Processed 2 out of 19886 subscribers [0.9276950000] (214)
phpList - Script stage: 5 [0.0004970000] (216)
phpList - 2 messages sent in 1.05 seconds (6845 msgs/hr) [0.0004790000] (219)
phpList - Finished this run [0.0011690000] (227)

define(‘MAILQUEUE_BATCH_SIZE’, 200);
define(‘MAILQUEUE_BATCH_PERIOD’, 60);
define(‘MAILQUEUE_THROTTLE’, 0);
define(‘PROCESSCAMPAIGNS_PARALLEL’,0);
define(‘MANUALLY_PROCESS_QUEUE’, 1);

define(‘MAX_PROCESS_MESSAGE’, 1);
define(‘MAX_PROCESSQUEUE_TIME’, 1);

All others are disabled.

@duncanc

Requesting your help please.

Don’t use settings if you do not understand what they mean. This is explained in the config_extended.php file.

If I disable this or set it to 0 - the emails keep incrementing continuously and does not stop even if the cron is set to once in 5 minutes

That was the reason I had this enabled as this controls or stops the continuous sending…

Is there anything I am missing?

@santosh19 It should send 200 emails then stop as that is the batch size.
But this line doesn’t look correct

Sending in batches of 1 emails [0.0001990000] (123)