Articles about "Action Mailer".

All Tags

Organizing Mailer Templates with prepend_view_path in Rails.

August 13, 2025

Tired of hunting for email templates scattered across your Rails app? If your mailer views are spread throughout app/views like confetti, there's a simple solution you might not know about. Learn how prepend_view_path can help you organize all your email templates in one clean, centralized location – and why your future self (and your team) will thank you for it.

Catch your emails in Rails development with Mailhog.

January 03, 2024

Almost every non-trivial Rails application needs to handle email. While in development mode, the setup for actually viewing the raw email in HTML or Text is very tedious. It's even dangrous with the current Rails defaults. So follow this guide to use the tool Mailhog to catch all mails locally.

Subscribe to get future articles via the RSS feed .