Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Mailer < ActionMailer::Base
- def notify_client(recipient = nil, first_name = nil)
- return false if recipient.nil? or first_name.nil?
- setup_email
- @recipients = recipient
- @subject += "Thank you for your submission"
- @body[:first_name] = first_name
- end
- private
- def setup_email
- @from = DO_NOT_REPLY
- @subject = "[Vacation Greeting Card] "
- @sent_on = Time.now
- end
- end
Add Comment
Please, Sign In to add comment