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/1unconditionally inserted withmode: :savepoint(added in 0.1.8 to protectLog.mark_as_opened/2/mark_as_clicked/3‘s transactional callers).:savepointmode is not a no-op outside a transaction — it requires one to nest a savepoint in, and raisesDBConnection.TransactionError: transaction is not startedotherwise. Every event created by the SQS processor’s non-transactional paths (delivery, bounce, complaint, open, click) was hitting this, so thephoenix_kit_email_eventsaudit trail silently stopped populating for messages processed via SQS. Fixed by only requesting:savepointmode whenrepo().in_transaction?()is true.
Changed
- Dependency bumps (
mix.lock):phoenix_kit1.7.172 → 1.7.178, plus patch-level updates tophoenix,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.