Skip to content

Instantly share code, notes, and snippets.

@mtmcfarl
Created October 26, 2013 03:52
Show Gist options
  • Save mtmcfarl/7165087 to your computer and use it in GitHub Desktop.
Save mtmcfarl/7165087 to your computer and use it in GitHub Desktop.
class ContactFormMailer < ActionMailer::Base
def contact_request(contact)
@contact = contact
from_addr = "#{@contact[:first_name]} #{@contact[:last_name]} <#{@contact[:email]}>"
mail(to: "[email protected]", from: from_addr, subject: 'Contact Form Request')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment