diff --git a/webapp/config.ru b/webapp/config.ru index b4931dc..ee27698 100644 --- a/webapp/config.ru +++ b/webapp/config.ru @@ -1,7 +1,7 @@ $: << './' require "signup" -CONTACT_EMAIL = '' -DESTINATION_EMAIL = '' +FROM_ADDRESS = '' +TO_ADDRESS = '' GMAIL_USERNAME = '' GMAIL_PASSWORD = '' diff --git a/webapp/signup.rb b/webapp/signup.rb index cc62b83..846d0a6 100644 --- a/webapp/signup.rb +++ b/webapp/signup.rb @@ -24,7 +24,7 @@ smtp = Net::SMTP.new 'smtp.gmail.com', 587 smtp.enable_starttls smtp.start("gmail.com", GMAIL_USERNAME, GMAIL_PASSWORD, :login) do - smtp.send_message("Subject: #{subject}\n\n#{body}", DESTINATION_EMAIL, CONTACT_EMAIL) + smtp.send_message("Subject: #{subject}\n\n#{body}", FROM_ADDRESS, TO_ADDRESS) end redirect to('/thanks'), 303 end