Skip to content

Emails 0.1.14: Brevo delivery events and an honest AWS status

Emails 0.1.14 tracks delivery events for emails sent through Brevo and fixes a check that always reported AWS credentials as present.

Brevo events

A new Brevo Events section on the email sending settings page can poll Brevo’s events API in the background, for each Brevo account an enabled send profile uses. It shows the polling state and last poll, a Poll now button and a list of Accounts you can uncheck to stop polling one. The status sync on an email’s details page and in the list’s row menu also asks Brevo for that one message. Background polling runs in a brevo_polling Oban queue.

Fixes

The check for AWS credentials compared them with an empty string while unset credentials are nil, so it always said yes. The Configured badge next to Amazon SES in the settings, the per-email status sync and the provider shown now reflect what is really set. SQS polling now runs only when an enabled send profile uses an AWS SES connection, or when AWS credentials are configured.

Upgrading

To use Brevo polling, add brevo_polling: 1 to your Oban queues.

Full release notes: Emails 0.1.14

0.1.14 · 19 July 2026

Fixed

  • Emails.aws_configured?/0 always returned true regardless of actual configuration: get_aws_access_key/0/get_aws_secret_key/0 return nil (not "") when unconfigured, but the check only compared against "" (nil != "" is true in Elixir). This silently affected sync_email_status/1, fetch_sqs_events_for_message/1, fetch_dlq_events_for_message/1, current_provider/0, and the “AWS Configured” badge on the Amazon SES & SQS settings section — all now correctly reflect whether AWS credentials are actually present. (#19)

Changed

  • SQSPollingJob now gates polling on whether SES is actually the thing sending mail right now, mirroring BrevoPollingJob’s sender-aware gate: polling requires either an enabled SendProfile pointed at an "aws_ses" integration, or Emails.aws_configured?/0 as an explicit override for deployments that predate the SendProfile system (legacy Settings/env-var credentials, or a bare aws_ses Integrations connection with nothing pointed at it). (#19)

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