From 2892d0e1d533e5b9b4b539e95d7ae6eb006769be Mon Sep 17 00:00:00 2001 From: voodoorai2000 Date: Thu, 13 Sep 2018 20:38:42 +0200 Subject: [PATCH] Add placeholder configuration for SMTP --- config/environments/preproduction.rb | 12 ++++++++++++ config/environments/production.rb | 12 ++++++++++++ config/environments/staging.rb | 12 ++++++++++++ 3 files changed, 36 insertions(+) diff --git a/config/environments/preproduction.rb b/config/environments/preproduction.rb index 3750a21d0..06f210c82 100644 --- a/config/environments/preproduction.rb +++ b/config/environments/preproduction.rb @@ -66,6 +66,18 @@ Rails.application.configure do config.action_mailer.default_url_options = { host: Rails.application.secrets.server_name } config.action_mailer.asset_host = "https://#{Rails.application.secrets.server_name}" + # SMTP configuration to deliver emails + # Uncomment the following block of code and add your SMTP service credentials + # config.action_mailer.delivery_method = :smtp + # config.action_mailer.smtp_settings = { + # address: 'smtp.example.com', + # port: 587, + # domain: 'example.com', + # user_name: '', + # password: '', + # authentication: 'plain', + # enable_starttls_auto: true } + # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true diff --git a/config/environments/production.rb b/config/environments/production.rb index 60ab4fdf3..e7ddfd86a 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -66,6 +66,18 @@ Rails.application.configure do config.action_mailer.default_url_options = { host: Rails.application.secrets.server_name } config.action_mailer.asset_host = "https://#{Rails.application.secrets.server_name}" + # SMTP configuration to deliver emails + # Uncomment the following block of code and add your SMTP service credentials + # config.action_mailer.delivery_method = :smtp + # config.action_mailer.smtp_settings = { + # address: 'smtp.example.com', + # port: 587, + # domain: 'example.com', + # user_name: '', + # password: '', + # authentication: 'plain', + # enable_starttls_auto: true } + # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 941ac300e..162b574fb 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -66,6 +66,18 @@ Rails.application.configure do config.action_mailer.default_url_options = { host: Rails.application.secrets.server_name } config.action_mailer.asset_host = "https://#{Rails.application.secrets.server_name}" + # SMTP configuration to deliver emails + # Uncomment the following block of code and add your SMTP service credentials + # config.action_mailer.delivery_method = :smtp + # config.action_mailer.smtp_settings = { + # address: 'smtp.example.com', + # port: 587, + # domain: 'example.com', + # user_name: '', + # password: '', + # authentication: 'plain', + # enable_starttls_auto: true } + # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true