Skip to content

Emails 0.1.9: Delivery events from SQS are recorded again

Emails 0.1.9 fixes a bug from 0.1.8 that stopped the module from recording delivery events that arrive through AWS SQS.

Since 0.1.8, every new event was saved inside a database savepoint. That only works inside a transaction, and the SQS processor saves delivery, bounce, complaint, open and click events outside one, so each of those saves failed. The events timeline of those emails stayed empty. Events now use a savepoint only when a transaction is open, and SQS events are recorded again. Events lost while 0.1.8 ran are not recovered.

Dependencies were refreshed, including PhoenixKit 1.7.178 in the lockfile.

Full release notes: Emails 0.1.9

0.1.9 · 8 July 2026

Fixed

  • Event.create_event/1 unconditionally inserted with mode: :savepoint (added in 0.1.8 to protect Log.mark_as_opened/2/mark_as_clicked/3‘s transactional callers). :savepoint mode is not a no-op outside a transaction — it requires one to nest a savepoint in, and raises DBConnection.TransactionError: transaction is not started otherwise. Every event created by the SQS processor’s non-transactional paths (delivery, bounce, complaint, open, click) was hitting this, so the phoenix_kit_email_events audit trail silently stopped populating for messages processed via SQS. Fixed by only requesting :savepoint mode when repo().in_transaction?() is true.

Changed

  • Dependency bumps (mix.lock): phoenix_kit 1.7.172 → 1.7.178, plus patch-level updates to phoenix, phoenix_live_view, db_connection, swoosh, mint, and others.

Emails 0.1.9. Install or update: {:phoenix_kit_emails, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.