Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 33 lines (17 sloc) 1.195 kB
74cfa35 @ryanb adding readme and simplifying file paths
authored
1 = Letter Opener
2
3 Preview mail in your browser instead of sending it. When using the included delivery method, any sent mail will open automatically into the browser.
4
5 == Rails Setup
6
7 Add the gem to your development environment and run the +bundle+ command.
8
9 gem "letter_opener", :group => :development
10
11 And then set the delivery method in <tt>config/environments/development.rb</tt>
12
13 config.action_mailer.delivery_method = :letter_opener
14
15 Now any delivered mail will pop up in your browser. The messages are stored in <tt>tmp/letter_opener</tt>.
16
17
18 == Other Setup
19
20 This can be used with any environment that uses the Mail gem. Simply set the delivery method when configuring Mail and specify a location.
21
22 require "letter_opener"
23 Mail.defaults do
24 delivery_method LetterOpener::DeliveryMethod, :location => "tmp/letter_opener"
25 end
26
27
28 == Development & Feedback
29
30 Questions or comments? Please use the {issue tracker}[https://github.com/ryanb/private_pub/issues]. If you would like to contribue to this project, clone this repository and run +bundle+ and +rake+ to run the tests.
31
32 Special thanks to the {mail_view}[https://github.com/37signals/mail_view/] gem for inspiring this project.
Something went wrong with that request. Please try again.