From bacc87ad8c351ea6917b3bce3ee5c9d33082d6d1 Mon Sep 17 00:00:00 2001 From: Pranav Raj Sreepuram Date: Sat, 17 Aug 2019 17:49:59 +0530 Subject: [PATCH] Add letter opener to view emails locally --- config/environments/development.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index b0d7a9d9b..74434ea60 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -27,8 +27,9 @@ Rails.application.configure do end config.action_mailer.default_url_options = { :host => 'localhost', port: 3000 } - config.action_mailer.delivery_method = :smtp - config.action_mailer.smtp_settings = { :address => 'localhost', :port => 1025 } + + config.action_mailer.delivery_method = :letter_opener + config.action_mailer.perform_deliveries = true # Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = false