Refer to: https://github.com/ryanb/letter_opener
First add the gem to your development environment and run the bundle command to install it.
gem "letter_opener", :group => :developmentThen set the delivery method in config/environments/development.rb