Guest User

Untitled

a guest
Mar 13th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. class Mailer < ActionMailer::Base
  2.  
  3. def notify_client(recipient = nil, first_name = nil)
  4. return false if recipient.nil? or first_name.nil?
  5. setup_email
  6. @recipients = recipient
  7. @subject += "Thank you for your submission"
  8. @body[:first_name] = first_name
  9. end
  10.  
  11. private
  12.  
  13. def setup_email
  14. @from = DO_NOT_REPLY
  15. @subject = "[Vacation Greeting Card] "
  16. @sent_on = Time.now
  17. end
  18.  
  19. end
Add Comment
Please, Sign In to add comment