Install
Works with Drupal: ^8.8 || ^9Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
The 2.x branch includes many important bug fixes and features since 1.x. It brings the code up to date with Core deprecations ready for Drupal 9 and inline with the current Drupal coding standards.
The new 2.x branch is not fully back-compatible with 1.x; however sites that use this module without customisation are not affected as data is automatically migrated. See the change notes below for more details.
This release is still only a beta. There are open issues with security and data loss implications in certain scenarios - see #3036989: [PLAN] Roadmap. It's unlikely that there will ever be a stable 2.x release because the correct fix requires further changes that are not back-compatible, so the fixes would need to be in a new 3.x branch. This work is not currently planned; if you would like to help with patches or funding please get in touch.
Data model changes
See https://www.drupal.org/node/3107332. Existing data will be automatically updated where necessary.
API Changes
See https://www.drupal.org/node/3062343.
Major features
2.x includes a fully working implementation of "Recipient Handlers". Instead of allowing people to subscribe to a newsletter, the recipients are calculated automatically, for example "event attendees" or "users with a role". It takes just a few lines of code and there are some examples in the simplenews_demo module.
Fixes compared to 1.x
- Issue #3052714: Send failures retried forever by AdamPS, jonathanshaw
- Issue #3106874: "In progress" spool entries are not counted correctly by AdamPS
- Issue #772640: Allow access to unsubscribe links without subscribe permission by AdamPS, rsevero, Anybody, ohnobinki
- Issue #3088574: Subscriber missing tokens for fields by AdamPS
- Issue #3084659: Removal form redirects to subscription page by gg24
- Issue #3059184: View migration for 8.x-1.x to 8.x-2.x by AdamPS
- Issue #3103733: Mix up over subscriber status: boolean or 0/1 by AdamPS
- Issue #3102765: Drepecations/updates to match D8.8 by AdamPS
- Issue #3042666: Drupal 9 Deprecated Code Report by AdamPS
- Issue #3042666: Drupal 9 Deprecated Code Report by AdamPS, jcnventura, gmangones, vuil
- Issue #3086013: Add base theme definition to test theme by Berdir
- Issue #3082748: simplenews_demo Convert from Simpletests to PHPUnit tests by w.drupal
- Issue #3037140: Fix coding standards by jcnventura
- Issue #3037140: Fix coding standards by jcnventura, AdamPS, TR
- Issue #3037140: Fix coding standards by jcnventura, TR
- Issue #3079894: Fix visibility of test methods by TR, jcnventura
- Issue #3075393: PHP 7.2 error for SpoolStorage addIssue by agoja
- Issue #2994827: Simplenews Drush 9 support by jcnventura, Coops_, andrewbelcher, jkardum, AdamPS, msajko, tamerzg
- Issue #3055728: Convert from Simpletests to PHPUnit tests by w.drupal, AdamPS
- Issue #3072282: Edge cases for recipient handler widget by AdamPS
- Issue #3037266: Reduce number of local actions on subsribers page by AdamPS
- Issue #3037036: Create button to add a single subscriber by AdamPS, Berdir
- Issue #2421537: Convert subscriptions field to a base field by AdamPS, sasanikolic, LKS90, Berdir
- Issue #3055769: Mail spool inconsistent between nodes / entities by AdamPS
- Issue #3062352: Add tests for RecipientHandler by AdamPS, jonathanshaw
- Issue #3062530: Fix and simplify subscriber creation/lookup/sync by AdamPS
- Issue #3057125: Create a temporary subscriber for recipient that is User entity by AdamPS, jonathanshaw
- Issue #1924536: Limit what recipient handlers can be used with a given newsletter by AdamPS
- Issue #3052727: Create clear consolidated functions to send/cancel newsletters by AdamPS
- Issue #3062530: Fix and simplify subscriber creation/lookup/sync by AdamPS
- Issue #3062330: Temporarily remove simplenews_scheduler from demo as it's broken on 8.x-2.x by AdamPS
- Issue #3055868: Delete entity load/delete wrappers by w@drupal
- Issue #3055850: Wrong location of recipient handler UI by AdamPS
- Issue #3053650: Subscriber counts ignore RecipientHandlerInterface::count() by AdamPS
- Issue #3053223: Failure to send mail during cron causes errors / emails to sysadmin by AdamPS
- Issue #3052713: Confusing send status after cancelling a part-sent newsletter by AdamPS
- Issue #1931006: Problem with recipient handlers by AdamPS, rlmumford, jonathanshaw
- Issue #2876615: Remove dead D7 code by AdamPS, mgoncalves, hgunicamp
- Issue #3042666: Drupal 9 Deprecated Code Report by w@drupal, Manuel Garcia
- Issue #3055769: Mail spool inconsistent between nodes / entities by AdamPS
- Issue #3030432: Simplenews list page confusing/wrong "send status" by AdamPS, neeraprajapati, GGH, ramreddy.kancherla
- Issue #3054356: Views broken for mail spool by AdamPS
- Issue #3053098: Add menu links for subscribers and newsletters by AdamPS