about summary refs log tree commit diff
path: root/config/environments
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-16 12:13:40 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-16 12:13:40 +0100
commit2c374cd97cea67447cccee004ae7fe189db9abc5 (patch)
tree19536f52397397e4bea4d7bfa9fb3e20a1bf9c85 /config/environments
parent8767a98fbb013bed01443721c17eadeba70c3421 (diff)
Adding e-mail configuration
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/production.rb12
1 files changed, 12 insertions, 0 deletions
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