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