Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplified contact form and made the from address the sender of the e…

…mail
  • Loading branch information...
commit 2f10a32bfcec418760e381f2645aecc3ed83c0f0 1 parent 82a67ae
@konklone konklone authored
View
4 app/models/contact_mailer.rb
@@ -2,9 +2,9 @@ class ContactMailer < ActionMailer::Base
def contact_form(name, email, message)
recipients 'tcorps@sunlightfoundation.com'
- from 'tcorps-contact@sunlightfoundation.com'
+ from email
subject "[T-Corps] Contact form submission from #{name}"
- body :name => name, :email => email, :message => message
+ body :message => message
end
end
View
2  app/views/contact_mailer/contact_form.erb
@@ -1,3 +1 @@
-<%= @name %> (<%= @email %>) wrote:
-
<%= @message %>
Please sign in to comment.
Something went wrong with that request. Please try again.