All Projects → fgrehm → Letter_opener_web

fgrehm / Letter_opener_web

Licence: mit
A web interface for browsing Ruby on Rails sent emails

Projects that are alternatives of or similar to Letter opener web

Papercut Smtp
Papercut SMTP -- The Simple Desktop Email Server
Stars: ✭ 2,094 (+308.19%)
Mutual labels:  email, development
Mandriller
Mandrill SMTP API integration for ActionMailer
Stars: ✭ 124 (-75.83%)
Mutual labels:  rails, email
Mailcatcher
Catches mail and serves it through a dream.
Stars: ✭ 5,512 (+974.46%)
Mutual labels:  rails, development
Email Dashboard
📪 An interactive emailing management service with scheduling, templating, tracking and A/B testing.
Stars: ✭ 194 (-62.18%)
Mutual labels:  rails, email
Premailer Rails
CSS styled emails without the hassle.
Stars: ✭ 1,382 (+169.4%)
Mutual labels:  rails, email
Email inquire
Validate email for common typos and one-time email providers
Stars: ✭ 257 (-49.9%)
Mutual labels:  rails, email
Stealth
An open source Ruby framework for text and voice chatbots. 🤖
Stars: ✭ 481 (-6.24%)
Mutual labels:  rails
Mfcmapi
MFCMAPI
Stars: ✭ 501 (-2.34%)
Mutual labels:  email
Astroid
A graphical threads-with-tags style, lightweight and fast, e-mail client for Notmuch
Stars: ✭ 476 (-7.21%)
Mutual labels:  email
Attribute normalizer
Adds the ability to normalize attributes cleanly with code blocks and predefined normalizers
Stars: ✭ 473 (-7.8%)
Mutual labels:  rails
Thunderbird Conversations
An extension for Thunderbird that allows you to view threads as "real" conversations, including your own emails. This extension also adds a bunch of useful UI features in the conversation view.
Stars: ✭ 512 (-0.19%)
Mutual labels:  email
Inline svg
Embed SVG documents in your Rails views and style them with CSS
Stars: ✭ 510 (-0.58%)
Mutual labels:  rails
Check If Email Exists
Check if an email address exists without sending any email, written in Rust.
Stars: ✭ 497 (-3.12%)
Mutual labels:  email
Salmon
A Python Mail Server
Stars: ✭ 482 (-6.04%)
Mutual labels:  email
Maily
📫 Rails Engine to preview emails in the browser
Stars: ✭ 502 (-2.14%)
Mutual labels:  rails
Opal Rails
Bringing Ruby to Rails · Rails bindings for Opal
Stars: ✭ 477 (-7.02%)
Mutual labels:  rails
Kails
A Web App like Ruby on Rails with Koa2, Webpack and Postgres
Stars: ✭ 512 (-0.19%)
Mutual labels:  rails
Order query
Find next / previous Active Record(s) in one query
Stars: ✭ 472 (-7.99%)
Mutual labels:  rails
Glass Isc Dhcp
Glass - ISC DHCP Server Interface
Stars: ✭ 486 (-5.26%)
Mutual labels:  email
Acts as api
makes creating API responses in Rails easy and fun
Stars: ✭ 506 (-1.36%)
Mutual labels:  rails

letter_opener_web

Build Status Gem Version Code Climate

Gives letter_opener an interface for browsing sent emails.

Check out http://letter-opener-web.herokuapp.com to see it in action.

Installation

First add the gem to your development environment and run the bundle command to install it.

group :development do
  gem 'letter_opener_web', '~> 1.0'
end

Usage

Add to your routes.rb:

Your::Application.routes.draw do
  mount LetterOpenerWeb::Engine, at: "/letter_opener" if Rails.env.development?
end

And make sure you have :letter_opener delivery method configured for your app. Then visit http://localhost:3000/letter_opener after sending an email and have fun.

If you are running the app from a Vagrant machine, you might want to skip letter_opener's launchy calls and avoid messages like these:

12:33:42 web.1  | Failure in opening /vagrant/tmp/letter_opener/1358825621_ba83a22/rich.html
with options {}: Unable to find a browser command. If this is unexpected, Please rerun with
environment variable LAUNCHY_DEBUG=true or the '-d' commandline option and file a bug at
https://github.com/copiousfreetime/launchy/issues/new

In that case (or if you just want to browse mails using the web interface), you can set :letter_opener_web as your delivery method on your config/environments/development.rb:

config.action_mailer.delivery_method = :letter_opener_web

# If not everyone on the team is using vagrant
config.action_mailer.delivery_method = ENV['USER'] == 'vagrant' ? :letter_opener_web : :letter_opener

If you're using :letter_opener_web as your delivery method, you can change the location of the letters by adding the following to an initializer (or in development.rb):

LetterOpenerWeb.configure do |config|
  config.letters_location = Rails.root.join('your', 'new', 'path')
end

Usage on Heroku

Some people use this gem on staging environments on Heroku and to set that up is just a matter of moving the gem out of the development group and enabling the route for all environments on your routes.rb.

In other words, your Gemfile will have:

gem 'letter_opener_web'

And your routes.rb:

Your::Application.routes.draw do
  mount LetterOpenerWeb::Engine, at: "/letter_opener"
end

You might also want to have a look at the sources for the demo available at https://github.com/fgrehm/letter_opener_web_demo.

NOTICE: Using this gem on Heroku will only work if your app has just one Dyno and does not send emails from background jobs. For updates on this matter please subscribe to GH-35

Acknowledgements

Special thanks to @alexrothenberg for some ideas on this pull request.

Contributing

  1. Fork it and run bin/setup
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].