Skip to content

Newsletters 0.1.6: Send broadcasts to CRM contact lists

Newsletters 0.1.6 lets a broadcast go to a contact list from the CRM module, as well as to a newsletter list, and adds one-click unsubscribe headers to every broadcast email.

CRM lists as an audience

The broadcast editor gets a Send to choice between Newsletter list and CRM list. A CRM list member receives the broadcast when they are subscribed, have an email address, and their contact has not opted out. An archived CRM list shows This list is archived and cannot be sent to. Newsletters works as before when the CRM module is not installed.

Emails now carry List-Unsubscribe and List-Unsubscribe-Post headers, so mail clients can offer one-click unsubscribe for both kinds of list.

A scheduled send to an archived list fails once

A scheduled broadcast whose CRM list had been archived was retried on every scheduler run, forever. It now moves to a new Failed status, and the broadcasts page’s status filter can show failed broadcasts.

Other changes

A duplicate provider message id is now reported as a normal error instead of crashing. The lists pages move their title and subtitle into the admin header.

Upgrading

Newsletters 0.1.6 needs PhoenixKit core 1.7.190 or later.

Full release notes: Newsletters 0.1.6

0.1.6 · 19 July 2026

Fixed

  • process_scheduled_broadcasts/0 no longer retries a scheduled broadcast against an archived CRM list forever — Broadcaster.send/1’s {:crm_list_not_active, _} error now transitions the broadcast to a new terminal "failed" status instead of leaving it "scheduled" for every future scheduler tick to re-fetch and re-fail.
  • Delivery.changeset/2‘s unique_constraint(:message_id) now names the constraint after the real DB index (idx_newsletters_deliveries_message_id, from core migration V79) instead of Ecto’s default naming convention, so a genuine unique violation returns {:error, changeset} instead of raising Ecto.ConstraintError.
  • List-Unsubscribe / List-Unsubscribe-Post headers (RFC 8058) are now added for newsletters_list (user) broadcasts too, not just crm_list broadcasts — the one-click POST endpoint’s controller clause was also extended to handle the user_uuid/list_uuid token shape, which previously fell through to a silent no-op.
  • Added the missing "failed" option to the broadcasts admin page’s status filter dropdown, so broadcasts that hit the new terminal failed state can be filtered to in the UI.

Newsletters 0.1.6. Install or update: {:phoenix_kit_newsletters, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.