Problem/Motivation
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.
Issue fork simplenews-3537254
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
andre.bononComment #6
adamps commentedThanks