Created
February 22, 2017 18:46
-
-
Save Phoenix23A/4f09c856d0d39edb19da0ba72f2e342a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserMailer < ActionMailer::Base | |
default from: "from@example.com" | |
def contact_form(email, name, message) | |
@message = message | |
mail(:from => email, | |
:to => 'your-email@example.com', | |
:subject => "A new contact form message from #{name}") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment