What problem does it solve?
This Skill helps you implement Action Mailer transactional email workflows in Rails with confidence, so you can create correct templates, deliver emails safely, and keep behavior verified through TDD.
Core Features & Use Cases
- Action Mailer foundations: set up mailers, layouts, HTML + text templates, and previews for iterative development.
- TDD-first workflow: create mailer tests (headers, HTML body, text body) that drive mailer actions and templates to correctness.
- Production-ready delivery: prefer Active Job with deliver_later, configure delivery methods for development vs production, and validate delivery with integration tests.
- Common patterns: conditional emails, bulk sending with batching, email callbacks, attachments, dynamic sender/reply-to, and i18n-based subjects and copy.
- Use case: Implement a password reset flow that includes a tokenized reset link, localized subject lines, and verified HTML/text rendering.
Quick Start
Generate a mailer and start by writing the corresponding mailer test for your welcome or password reset action, then implement the mailer method and both templates until the test is green.