Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyMailer < ActionMailer::Base
- def registration_confirmation(signup) #user model as param
- recipients signup.email
- from "support@example.com"
- subject "Thank you for registering!"
- body :signup => signup #pass the user variable to the template
- end
- end
Add Comment
Please, Sign In to add comment