Skip to content

Instantly share code, notes, and snippets.

@mtmcfarl
Created October 26, 2013 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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: "your-email-address@your-domain.com", 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