From e9f46813ded613253f8a58f9fc82e7617c37d4ca Mon Sep 17 00:00:00 2001 From: Logan Fick Date: Sat, 21 Apr 2018 11:52:21 -0400 Subject: [PATCH] Moved SMTP settings to environment variables. --- config/environments/development.rb | 12 ++++++------ config/environments/production.rb | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index bfa0c96..7f2ae37 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -37,12 +37,12 @@ Redstoner::Application.configure do } config.action_mailer.smtp_settings = { - address: "smtp.gmail.com", - port: 587, - domain: "google.com", - authentication: "plain", - user_name: "redstonerserver@gmail.com", - password: ENV["GMAIL_PASSWORD"], + address: ENV["SMTP_ADDRESS"], + port: ENV["SMTP_PORT"], + domain: "redstoner.com", + authentication: ENV["SMTP_AUTH"], + user_name: ENV["SMTP_USERNAME"], + password: ENV["SMTP_PASSWORD"], } end diff --git a/config/environments/production.rb b/config/environments/production.rb index 257ea31..338dd3f 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -71,12 +71,12 @@ Redstoner::Application.configure do } config.action_mailer.smtp_settings = { - address: "smtp.gmail.com", - port: 587, - domain: "google.com", - authentication: "plain", - user_name: "redstonerserver@gmail.com", - password: ENV["GMAIL_PASSWORD"], + address: ENV["SMTP_ADDRESS"], + port: ENV["SMTP_PORT"], + domain: "redstoner.com", + authentication: ENV["SMTP_AUTH"], + user_name: ENV["SMTP_USERNAME"], + password: ENV["SMTP_PASSWORD"], } end