mailer

Automate ActionMailer email creation and testing with RSpec and Solid Queue.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates Action Mailer emails with HTML/text templates, previews, delivery tests, I18n, and background delivery via Solid Queue. Use when building transactional emails, notifications, password resets, email previews, or when user mentions mailer, email, or notifications.

Core Features & Use Cases

  • Provides expert guidance for building Rails ActionMailer integrations with HTML/text templates, previews, and background delivery.
  • Outlines conventional Rails structure (app/mailers, app/views, app/views/layouts, previews, tests) and a thorough TDD workflow with RSpec.
  • Real-world use cases include transactional emails, user notifications, and password resets; ready to implement in Rails apps.

Quick Start

Create a new mailer for a welcome notification with both HTML and text templates and development previews.

Frequently Asked Questions about mailer

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

FAQPage Schema
How do I set up ActionMailer previews for transactional emails in Rails?

To set up ActionMailer previews, generate mailer classes within the conventional app/mailers directory and define corresponding preview files. This creates HTML and text templates for transactional emails, allowing you to inspect rendering directly in the Rails development environment.

What's the best way to test Rails email delivery with RSpec?

Testing Rails email delivery with RSpec follows a TDD workflow that verifies mailer subject, body, and recipient attributes. You write spec files for the generated app/mailers classes to confirm notification content and validate delivery logic before background dispatch.

How do I internationalize email subjects and body text with I18n in Rails mailers?

Internationalizing email subjects and body text with I18n involves using locale translation keys within your mailer views and controller actions. This ensures notification templates render appropriately for different languages based on application locale settings.

Can I use Solid Queue for background email delivery in Rails?

Yes, Solid Queue supports background email delivery in Rails. It handles the asynchronous dispatch of transactional emails and user notifications, ensuring that mailer processing does not block the main application thread during password resets.

Does Rails ActionMailer work with both HTML and text email templates?

Yes, Rails ActionMailer works with both HTML and text email templates. Generating a mailer creates multipart templates by default, ensuring broader client compatibility and reducing spam filtering issues for transactional messages.

Why are my Rails email previews not showing up in development?

Rails email previews may not show up if preview files are missing or incorrectly named relative to the mailer classes in the app/mailers directory. Ensure the conventional structure is followed so the development environment can locate and render the templates.