Cron job only seems to send one e-mail per job

When I manually process a sending queue by pressing the button, sending happens normally. However, when I tried to setup a cron job to automate it, the job runs every five minutes but only one e-mail appears to go out each time.

Is there a reason that manually processing the queue would work but doing it with a cron job would not?

php-cli is 8.5.12
apache2 is running php 8.4.27

Could the command line version be too high to work reliably?

@dschaller It depends on the batch and throttle settings in the config.php file. It is not really possible to have settings that work the same for processing the queue by command line and manually in the browser.

If you will be mostly using the command line to process the queue then set the batch size to the number of emails to be sent in each run of the cron job, set the batch period to be a small number, and maybe use throttle to have a delay between each email.

I have no batch or throttle settings configured anywhere. I’m sending through Amazon SES with a list of about 450 so the mailer can handle it easily. My whole list sends in about 30 seconds.

I switched the CLI to php 8.4.27 and it worked just fine. Does that give any clues?

@dschaller Does the Event log page show any errors when you were using 8.5.12?

It doesn’t show any errors, but it’s clear from the log that it isn’t working correctly. It finds the subscribers, finds the list, processes one subscriber, and then finishes until the cron runs again five minutes later. You can see that there’s five minutes between each e-mail and only one is sent out each time the queue is processed.

Page: processqueue
22525 2026-10-28 14:35:02 Processing has started,
Page: processqueue
22524 2026-10-28 14:30:01 Found them: 359 to process
Page: processqueue
22523 2026-10-28 14:30:01 Looking for subscribers
Page: processqueue
22522 2026-10-28 14:30:01 Processing campaign 1996
Page: processqueue
22521 2026-10-28 14:30:01 One campaign to process.
Page: processqueue
22520 2026-10-28 14:30:01 Processing has started,
Page: processqueue
22519 2026-10-28 14:25:01 Found them: 360 to process
Page: processqueue
22518 2026-10-28 14:25:01 Looking for subscribers
Page: processqueue
22517 2026-10-28 14:25:01 Processing campaign 1996
Page: processqueue
22516 2026-10-28 14:25:01 One campaign to process.
Page: processqueue
22515 2026-10-28 14:25:01 Processing has started,
Page: processqueue

@dschaller Thanks. I think that phplist is failing after sending the first email. Is there a php error log that you can look at? Often it is created in the phplist admin directory.

I have php 8.5.12 installed on my desktop and I can send through Amazon SES plugin successfully.

Also, ensure that you have the latest version of the plugin, 1.4.1+20241005, and of Common plugin, 3.35.6+20260728, installed.