Skip to content

Commit

Permalink
got the email constants backwards and cleared up their names
Browse files Browse the repository at this point in the history
  • Loading branch information
lazzarello committed Apr 3, 2012
1 parent 46818cc commit c224e97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webapp/config.ru
@@ -1,7 +1,7 @@
$: << './'
require "signup"
CONTACT_EMAIL = ''
DESTINATION_EMAIL = ''
FROM_ADDRESS = ''
TO_ADDRESS = ''
GMAIL_USERNAME = ''
GMAIL_PASSWORD = ''

Expand Down
2 changes: 1 addition & 1 deletion webapp/signup.rb
Expand Up @@ -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
Expand Down

0 comments on commit c224e97

Please sign in to comment.