- Issue created by @andre.bonon
- @andrebonon opened merge request.
While debugging the simplenews_cron() implementation, I noticed that it ignores the 'mail.use_cron' configuration setting and proceeds to call sendSpool() unconditionally.
This behavior may appear harmless since the Mailer::attemptImmediateSend() method internally checks the same configuration. However, in certain custom setups where sending is exclusively managed via a Drush command (e.g., drush sn-ss), itβs important that the cron job does not initiate any sending behavior at all.
Expected behavior: if 'mail.use_cron' is set to FALSE, the hook_cron() implementation should respect that and avoid calling sendSpool() altogether.
Active
4.1
Code