Sha256: 4c7ffab6a4bad6c906eff17d01cb8a7d5980227439c598d7f99e0f8ff4f5ccf3
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
= Letter Opener Preview mail in your browser instead of sending it. When using the included delivery method, any sent mail will open automatically into the browser. == Rails Setup First add the gem to your development environment and run the +bundle+ command to install it. gem "letter_opener", :group => :development Then set the delivery method in <tt>config/environments/development.rb</tt> config.action_mailer.delivery_method = :letter_opener Now any delivered mail will pop up in your browser. The messages are stored in <tt>tmp/letter_opener</tt>. == Other Setup This can be used with anything that uses the Mail gem. Simply set the delivery method when configuring Mail and specify a location. require "letter_opener" Mail.defaults do delivery_method LetterOpener::DeliveryMethod, :location => "tmp/letter_opener" end == Development & Feedback Questions or comments? Please use the {issue tracker}[https://github.com/ryanb/letter_opener/issues]. If you would like to contribute to this project, clone this repository and run +bundle+ and +rake+ to run the tests. Special thanks to the {mail_view}[https://github.com/37signals/mail_view/] gem for inspiring this project and for their mail template.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
letter_opener-0.0.1 | README.rdoc |