Preview Rails and Ruby application emails in your browser during development instead of sending them.
Letter Opener is a Ruby gem that intercepts emails generated during development and displays them directly in your web browser instead of sending them. It solves the problem of accidentally sending test emails to real addresses and eliminates the need to configure email delivery in development environments. The gem works with Rails, the Mail gem, Pony, and standalone ActionMailer implementations.
Ruby and Rails developers who need to test email functionality in their applications during development without risking accidental email delivery or configuring complex email services.
Developers choose Letter Opener for its simplicity and safety—it requires minimal configuration, works with multiple Ruby email libraries, and provides instant visual feedback without external dependencies or service setup.
Preview mail in the browser instead of sending.
Opens generated emails directly in the default web browser as HTML, providing instant visual feedback without manual email client setup, as described in the README's core functionality.
Intercepts all outgoing mail in development to prevent accidental sends to real addresses, eliminating the risk of test emails reaching users without complex SMTP configuration.
Works seamlessly with Rails ActionMailer, the Mail gem, and Pony, with clear setup examples provided for each in the README, ensuring broad Ruby email library support.
Offers configurable message templates, allowing developers to choose between fully-styled emails or lightweight body-only views via the message_template setting.
Requires a local browser to open emails, making it ineffective for remote development setups like VMs or Docker containers, as admitted in the README with suggested workarounds like setting LAUNCHY_DRY_RUN.
Lacks a web interface to review past emails; users must rely on file storage or integrate a separate gem like letter_opener_web for historical access, adding complexity.
Depends on the Launchy gem, which can fail with command errors in environments without a GUI, requiring manual environment variable overrides and debugging.
📮 A fully featured open source mail delivery platform for incoming & outgoing e-mail
Better error page for Rack apps
Pretty print your Ruby objects with style -- in full color and with proper indentation
Chrome extension for Rails development
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.