Letter Opener Web
Read the mail your app sends, in a page mounted in the app itself
No ratings yet
- Gem
- letter_opener_web
- Repository
- fgrehm/letter_opener_web
- License
- MIT
- Stars
- 815
- Added
- July 23, 2026
About
Every mailer you write needs looking at before it goes out. This mounts the outbox.
What you get
- A browsable list of the emails your app has "sent"
- HTML, text and raw source views of each one
- Attachment previews
- A delete-all button
Mounting it
ruby
# Gemfile
group :development do
gem "letter_opener_web"
end
# config/routes.rb
mount LetterOpenerWeb::Engine, at: "/letter_opener" if Rails.env.development?
On staging too
Mounting it on staging behind an admin check is the trick that removes the SMTP
sandbox subscription entirely: the team reads staging mail at a path on the staging
app.
Discussion (0)
Sign in to join the discussion.
No comments yet.