diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 35f8022..edb2a3b 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -213,7 +213,7 @@ class ApplicationController < BaseController end def contact_send - email_list = ['Godwin '] + email_list = [ENV['ADMIN_EMAIL']] if params[:reason] == 'conference' && logged_in? diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index f2fdf61..348c4d2 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -163,12 +163,12 @@ class UserMailer < ActionMailer::Base @request = request @params = params - mail to: 'goodgodwin@hotmail.com', subject: clean_subject("Details for: \"#{subject}\"") + mail to: ENV['ADMIN_EMAIL'], subject: clean_subject("Details for: \"#{subject}\"") end def server_startup(environment) @environment = environment - mail to: 'goodgodwin@hotmail.com', subject: clean_subject("Deployment to #{environment} complete") + mail to: ENV['ADMIN_EMAIL'], subject: clean_subject("Deployment to #{environment} complete") end private diff --git a/docker-compose.yml b/docker-compose.yml index 959d4f6..b38dcf5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -58,6 +58,7 @@ services: - SMTP_USER_NAME=${SMTP_USER_NAME:-info@bikebike.org} - SMTP_PASSWORD=${SMTP_PASSWORD:-fake} - SMTP_SSL=${SMTP_SSL:-false} + - ADMIN_EMAIL=${ADMIN_EMAIL:-info@bikebike.org} - DEFAULT_URL=${DEFAULT_URL:-bikebike.org} volumes: - bikebikebike:/app/BikeBike