From 2c374cd97cea67447cccee004ae7fe189db9abc5 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 16 Mar 2016 12:13:40 +0100 Subject: Adding e-mail configuration --- config/environments/production.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'config/environments') diff --git a/config/environments/production.rb b/config/environments/production.rb index 5c1b32e48..b0236d09e 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -76,4 +76,16 @@ Rails.application.configure do # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false + + # E-mails + config.action_mailer.smtp_settings = { + :port => ENV['SMTP_PORT'], + :address => ENV['SMTP_SERVER'], + :user_name => ENV['SMTP_LOGIN'], + :password => ENV['SMTP_PASSWORD'], + :domain => config.x.local_domain, + :authentication => :plain, + } + + config.action_mailer.delivery_method = :smtp end -- cgit