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
mix phoenix_kit_emails.templates.export # --dry-run to preview first
Emails news
-
Emails 0.10.0: IAM policies for each SES account, and open and click tracking you switch on
PhoenixKit Emails 0.10.0 shows the IAM policies each Amazon SES key needs and makes SES open and click tracking a per-account choice, off by default.
-
Emails 0.9.0: Spam complaints now block the address, and the SNS webhook works again
PhoenixKit Emails 0.9.0: spam complaints and webhook bounces now reach the blocklist, SNS webhook events are recorded again, and unblocking an address sticks.
-
Emails 0.8.0: Email address verification moves out, and what to do before you update
PhoenixKit Emails 0.8.0 removes SMTP address verification from the Phoenix email module. Here is what to switch off first, plus two bug fixes.
-
Emails 0.7.0: Templates leave the database, and the module moves to PhoenixKit 3
Emails 0.7.0 for Elixir Phoenix needs PhoenixKit 3, drops the database email templates and their admin pages, and lets repair and doctor check its tables.
-
Emails 0.6.0: Address verification, template sources in the log and an SES switch
PhoenixKit Emails 0.6.0 checks whether addresses can receive mail, records which template built each email and adds a switch to stop SES event processing.
Install
1
Add to mix.exs
{:phoenix_kit_emails, "~> 0.10"}
2 Fetch it and run its migrations
$ mix deps.get && mix phoenix_kit.update
3
Switch it on in /admin/modules
- Package
- phoenix_kit_emails
- Releases
-
- 0.10.1
- 0.10.0
- 0.9.0
- Admin
-
/admin/emails - Links
- HexDocs ↗ GitHub ↗ Changelog ↗
Related modules
What it needs, what builds on it, and its neighbours in Business operations.
Calendar
A personal calendar per user, with permissions to view others'
No other modules needed
CRM
Contacts, companies and logged interactions, with per-role access
Needs Comments
Customer Support
Support tickets with statuses, internal notes, attachments and assignment
No other modules needed
Inbox
Internal webmail between your app's users, with shared mailboxes
No other modules needed
Locations
Physical locations with custom types, amenities and per-owner access
No other modules needed
Newsletters
Email broadcasts to CRM lists or roles, with layouts and unsubscribe
Needs templates