Guest User

Untitled

a guest
May 27th, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. class MyMailer < ActionMailer::Base
  2. def registration_confirmation(signup) #user model as param
  3. recipients signup.email
  4. from "support@example.com"
  5. subject "Thank you for registering!"
  6. body :signup => signup #pass the user variable to the template
  7. end
  8. end
Add Comment
Please, Sign In to add comment