Permalink
Browse files

document ActionMailer setup in README - closes #25

  • Loading branch information...
1 parent fccbf2f commit 8a0705c6c8f7927872af3c0a66603e919ef37cfc @ryanb committed Oct 1, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.rdoc
View
@@ -25,6 +25,12 @@ If you aren't using Rails, this can be easily set up with the Mail gem. Just set
delivery_method LetterOpener::DeliveryMethod, :location => File.expand_path('../tmp/letter_opener', __FILE__)
end
+Alternatively, if you are using ActionMailer directly (without Rails) you will need to add the delivery method.
+
+ require "letter_opener"
+ ActionMailer::Base.add_delivery_method :letter_opener, LetterOpener::DeliveryMethod, :location => File.expand_path('../tmp/letter_opener', __FILE__)
+ ActionMailer::Base.delivery_method = :letter_opener
+
== Development & Feedback

0 comments on commit 8a0705c

Please sign in to comment.