Created
October 15, 2012 18:45
-
-
Save mbleigh/3894298 to your computer and use it in GitHub Desktop.
How to use LetterOpener with Pony
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pony' | |
Pony.options = { | |
:via => :smtp, | |
:from => "Somebody <[email protected]>" | |
} | |
if ENV['RACK_ENV'] == 'development' | |
require "letter_opener" | |
Pony.options.merge!({ | |
via: LetterOpener::DeliveryMethod, | |
via_options: {location: File.expand_path('../../tmp/letter_opener', __FILE__)} | |
}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perfect - thanks!