Newsletters 0.1.12: File attachments on broadcasts
Newsletters 0.1.12 lets a broadcast carry file attachments, picked from your site’s storage and sent with every email.
Attachments
The broadcast editor gets an Attachments section with Add files, which opens the media picker. Each file shows as a chip with its name and size and can be removed. A warning appears once the files total more than 7 MB, but it does not block saving. A file deleted from storage after it was attached shows as missing file, so you can still remove it. A broadcast takes up to 10 files, in the order you picked them, and the picker enforces that limit. The details page lists the same files.
Every delivery carries the files. A file that cannot be read is logged and left out rather than failing the send, so the other attachments still reach every recipient. Downloads are shared across a broadcast’s emails and cleared from memory soon after.
Also fixed
Message ids from Amazon SES over SMTP are now recorded. The pattern added in 0.1.11 never matched a real SES receipt.
Upgrading
Newsletters 0.1.12 needs PhoenixKit core 1.7.211 or later, for migration V158, which adds the attachments column. Run core’s migrations.
Newsletters 0.1.12. Install or update: {:phoenix_kit_newsletters, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.