swoosh-emails
Installation
SKILL.md
Swoosh Emails
RULES — Follow these with no exceptions
- Use Swoosh for all email sending
- Define emails in separate modules —
MyApp.Emails.UserEmail, not inline in contexts - Use Phoenix components for email templates — reuse UI components in emails
- Configure delivery per environment — Local adapter in dev/test, real adapter in prod
- Test emails with Swoosh.TestAssertions — assert emails were sent with correct content
- Never send emails synchronously in web requests — use Oban or Task for async delivery
- Use
Swoosh.Previewin development — preview emails in the browser - Prefer Oban over Task.start — retries and observability vs silent failures