Skip to content

Emails

Email logs, AWS SES event tracking, analytics and blocklist

v0.10.1 Business operations · updated 3 days ago · 4.0k downloads
mix.exs
{:phoenix_kit_emails, "~> 0.10"}

Logs every outgoing email and tracks delivery, bounce, complaint, open and click events, with AWS SES events polled from SQS. It adds analytics, rate limiting, a blocklist, queue management, archival of old data to S3 and email address verification. It stores email logs and events; templates are now files handled by phoenix_kit_templates, and this package keeps only a one-time export of legacy database templates.

Use it when

  • You send through AWS SES and need bounce and complaint handling
  • You need to see what emails went out to whom, and their open and click rates

What it gives you

  • Email log with optional body and header storage, CSV export
  • AWS SES events via SQS polling and webhook processing
  • Open pixel and link-rewrite click tracking; engagement and campaign stats
  • Rate limiting (Hammer), blocklist and outgoing queue view
  • Cleanup, body compression and S3 archival of old data
  • Address verification (syntax, DNS MX, optional SMTP check)
  • Admin pages under /admin/emails

Example

From the README
mix phoenix_kit_emails.templates.export   # --dry-run to preview first

Install

1 Add to mix.exs

deps
{:phoenix_kit_emails, "~> 0.10"}

2 Fetch it and run its migrations

Terminal
$ mix deps.get && mix phoenix_kit.update

3 Switch it on in /admin/modules

Releases
  1. 0.10.1
  2. 0.10.0
  3. 0.9.0
Admin
/admin/emails

Related modules

What it needs, what builds on it, and its neighbours in Business operations.