Skip to content

PhoenixKit 1.5.0: Follow every email from queue to delivery

PhoenixKit 1.5.0 tracks the whole life of an outgoing email. A message is now logged as queued when it is created and marked sent once the provider accepts it, and rejections, failures and delays each get their own status and time.

Twelve email statuses

An email log used to start as “sent” the moment it was created. It now starts as queued, and moves to sent after a successful hand-off to the provider. From there AWS SES events take it to delivered, opened or clicked, or to hard_bounced, soft_bounced, complaint, rejected, delayed or failed. Each of these outcomes records when it happened: bounces, complaints, rejections, delays and rendering failures from SES now all set their timestamp.

Two new events show up in an email’s timeline: one when the email is queued and one when it is sent, with the provider’s name.

In the admin

The email list and filters gain the new statuses, each with its own colour, and the email details page shows a colour-coded timeline. Bounce events say whether the bounce was hard or soft, rejections show the reason, delays the delay type, and failures the error. Opening an email that has a send event no longer crashes the details page. Large numbers on the email pages are now formatted for reading.

Upgrading

Run mix phoenix_kit.update to apply migration V19. It only adds the queued_at, rejected_at, failed_at and delayed_at columns, so it is safe on a live database. Existing emails keep their status and timestamps; only emails sent after the update start as queued.

Full release notes: PhoenixKit 1.5.0

1.5.0 · 10 November 2025

Added

  • Migration V21: Enhanced Security - Indexes on security-critical fields for performance
    • Index on phoenix_kit_users(email) for faster authentication queries
    • Index on phoenix_kit_user_tokens(user_id) for efficient token lookups
    • Index on phoenix_kit_sessions(user_id) for session management
    • Index on phoenix_kit_sessions(token) for active session verification
    • Index on phoenix_kit_user_role_assignments(user_id) for role checks
    • Index on phoenix_kit_settings(key) for settings lookups

Changed

  • Performance: Authentication and authorization queries optimized with proper indexing
  • Security: Faster session validation and token verification

PhoenixKit 1.5.0. Install or update: {:phoenix_kit, "~> 1.5"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.