action-mailer

Configure Action Mailer to send emails from Rails applications.

3|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/bastos/ruby-plugin-marketplace --skill action-mailer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: action-mailer
Source: https://github.com/bastos/ruby-plugin-marketplace/tree/main/plugins/ruby-on-rails/skills/action-mailer
Command: npx skills add https://github.com/bastos/ruby-plugin-marketplace --skill action-mailer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sending emails from Rails applications can be complex without a structured guide; this skill provides a clear, opinionated approach to configuring and using Action Mailer, including templates, attachments, and previews.

Core Features & Use Cases

  • Mailer creation and defaults: define a base mailer, set default from address and layout.
  • Templates and attachments: create HTML and text views, attach files, and inline assets.
  • Delivery options and previews: configure SMTP or other delivery methods, and preview emails in the browser.
  • Use cases: welcome emails, password resets, notifications, and transactional messages.

Quick Start

Create a mailer, define a sample email in app/mailers, and trigger it from a controller to send an email.

Frequently Asked Questions about action-mailer

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

FAQPage Schema
How do I send transactional emails from a Rails application?

Create a mailer class in app/mailers, define an email method with HTML and text views, then trigger it from a controller. ActionMailer handles delivery through SMTP or other methods, covering welcome emails, password resets, and notifications.

How do I configure SMTP for sending emails in Rails?

Configure SMTP delivery for Rails emails by setting delivery method options in your environment configuration. ActionMailer supports SMTP and other delivery methods for sending transactional messages like password resets and notifications.

Can I preview Rails mailer templates in the browser without sending an email?

Preview Rails mailer templates directly in the browser using ActionMailer previews. This lets you inspect HTML and text email views during development without triggering actual email delivery to recipients.

How do I add attachments and inline images to Rails emails?

Add attachments and inline assets to Rails emails within your mailer methods using ActionMailer. You can attach files and inline images alongside HTML and text view templates for rich transactional messages.

What's the best way to structure mailers for user onboarding and notifications in Rails?

Structure Rails mailers by defining a base mailer with default from address and layout, then creating specific mailer classes for user onboarding, password resets, and notifications. Set defaults centrally and use templates for consistent formatting.

Can I deliver Rails emails asynchronously to avoid blocking request processing?

Deliver Rails emails asynchronously or synchronously using ActionMailer delivery methods. Asynchronous delivery prevents email sending from blocking request processing, which is useful for transactional messages triggered during user onboarding or notifications.