This adds ADMIN_EMAIL for those places in the code where godwin's email address was hardcoded.
Former-commit-id: cdddb0dc7a68df8ed69121ea8eb55067e6502bff
This commit is contained in:
@@ -213,7 +213,7 @@ class ApplicationController < BaseController
|
||||
end
|
||||
|
||||
def contact_send
|
||||
email_list = ['Godwin <goodgodwin@hotmail.com>']
|
||||
email_list = [ENV['ADMIN_EMAIL']]
|
||||
|
||||
if params[:reason] == 'conference' && logged_in?
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user