action-mailer-patterns

Create and test transactional email templates with Action Mailer in Rails.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/reckerswartz/resume_builder --skill action-mailer-patterns-reckerswartz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: action-mailer-patterns
Source: https://github.com/reckerswartz/resume_builder/tree/main/.windsurf/skills/action-mailer-patterns
Command: npx skills add https://github.com/reckerswartz/resume_builder --skill action-mailer-patterns-reckerswartz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Implements transactional emails with Action Mailer and TDD. Use when creating email templates, notification emails, password resets, email previews, or when user mentions mailer, email, notifications, or transactional emails.

Core Features & Use Cases

  • HTML and text email templates with layouts for consistent styling
  • Background delivery via Active Job and previews for development
  • Internationalization support and reusable mailer patterns Use Case: Build and test typical email flows like welcome, password_reset, and notifications, including previews in multiple locales.

Quick Start

Create a sample UserMailer with welcome and password_reset actions, and generate previews to validate delivery.

Frequently Asked Questions about action-mailer-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create and test transactional emails in Rails?

You create transactional emails in Rails by implementing Action Mailer patterns with a test-driven approach, generating HTML/text templates, previews, and background delivery via Active Job for flows like password resets and notifications.

What are Action Mailer previews and how do they work for email templates?

Action Mailer previews let you validate email templates and delivery logic during development without sending real messages. This skill generates previews across multiple locales for welcome, password_reset, and notification mailers.

Does Rails Action Mailer support internationalization for transactional emails?

Yes, Rails Action Mailer supports internationalization for transactional emails. This skill provides i18n guidance and generates previews in multiple locales to validate that your welcome and notification templates render correctly across languages.

Do I need Rails 8.1 to use Action Mailer for transactional emails?

Yes, this skill requires a Rails 8.1+ environment with Action Mailer enabled. It follows a test-driven approach to provide reusable mailer patterns, previews, and i18n guidance tailored for that framework version.

What's the best way to set up background email delivery in Rails?

Background email delivery in Rails is best handled via Active Job integration. This skill streamlines transactional emails by combining Active Job background delivery with reusable mailer patterns, HTML/text layouts, and development previews.