I think there should be more granular control over when newsletters are sent. I recently ran an issue where I want newsletters to be sent only on weekdays.

This may not be the best route to go depending on how the module achieves this goal. But I'm attaching a patch that adds weekday functionality, it builds on top of the intervals and skips over weekends.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ericras’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
FileSize
463 bytes

I believe this is all that is needed for 7.x-1.x.

_simplenews_scheduler_make_time_offset() will provide "+1 weekday" to DateInterval::createFromDateString() in simplenews_scheduler_calculate_next_run_time().