Mailing never starts
Overview
Please describe your problem or bug in detail. Group emails from one of my CiviCRM installations are not being delivered (ever), which has caused some embarrassment. Messages can be composed as usual, but are never scheduled and there's no "runner" display. Pausing and restarting the mailing results in the status changing from "Scheduled" to "Running" and clicking "Report" shows the expected number of intended recipients but the "Successful Deliveries" count is always zero. In case it's relevant, I did notice that the option to send "immediately" is not selected by default (which I think it always is on sites that work), but it can be selected manually.
Obviously, I have enabled the "Send Scheduled Mailings" job and tried triggering that both manually and from a cron job. The log shows success but with a count of zero.
I have also tried obvious things like disabling all extensions, resetting caches and paths, comparing all settings with other installations that do work, searching the forums, bug reports and so on. I've checked that outgoing mail is configured correctly and I can send test emails. There's nothing in the error logs. Nothing makes any difference, it seems to be a bug.
The problem is reproducible in the sense that it's not intermittent, but I haven't been able to reproduce it on a clean installation.
I'd be prepared to move everything to a new installation to work around this but it's a heavily used instance with lots of contacts, invoices and so on and I know of no way to export all those and reimport them later to a working instance. Everything else seems to be working as usual.
Reproduction steps
- Create a group containing some test contacts.
- Go to Mailing > New Mailing and compose a test message, with the group from the previous step selected as Recipients.
- Click Send test and check that a test message is correctly delivered.
- Click Next then select Immediately or a date and time 5 minutes in the future.
- Click Submit Mailing.
- Wait for cron to run or go to System Settings > Scheduled Jobs and trigger Send Scheduled Mailings. Check that the result is success.
- Check that the message is now in Mailing > Scheduled and Sent Mailings. Click Report. Observe that Intended recipients is not zero but Successful deliveries is always zero.
Current behaviour
What happens currently. Please provide error messages, screenshots or gifs (LICEcap, SilentCast) where appropriate.
Nothing happens. No messages delivered, nothing in error logs.
Expected behaviour
What should happen.
Messages are sent once the scheduled job is triggered, perhaps with a batch limit. Eventually the whole job completes and the status changes to "Completed".
Environment information
- Browser: Chrome 114.0.5735.135
- CiviCRM: Master/5.62.1
- PHP: 8.1
- CMS: WordPress 6.2.2 running on Ubuntu 22.04
- Database: MariaDB 10.6.12
- Web Server: OpenLiteSpeed 1.7.17