From 5eb61eb4183e103e79229cd3c81382098c7bd383 Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Sun, 19 Apr 2020 15:34:45 +0200 Subject: [PATCH] Use sendmail in production --- config/environments/production.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index cbacd711..603fdcc4 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -57,6 +57,9 @@ Rails.application.configure do # config.active_job.queue_name_prefix = "justask_#{Rails.env}" config.action_mailer.perform_caching = false + # Use sendmail + config.action_mailer.delivery_method = :sendmail + # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false