Visual email testing
Preview plain text and html mail templates in your browser without redelivering it every time you make a change.
NOTE: MailView is part of Rails 4.1+. No need for the plugin anymore!
Add the gem to your Gemfile:
gem 'mail_view', :git => 'https://github.com/basecamp/mail_view.git'
# or
gem "mail_view", "~> 2.0.4"And run bundle install.
Since most emails do something interesting with database data, you'll need to write some scenarios to load messages with fake data. Its similar to writing mailer unit tests but you see a visual representation of the output instead.
# app/mailers/mail_preview.rb or lib/mail_preview.rb
class MailPreview 'mail_view'
endNow just load up http://localhost:3000/mail_view.
No open issues yet, or sync has not completed.