Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UserNotifier < ActionMailer::Base
- def general(user, from, subject, content)
- setup_email(user)
- @from = from
- @subject += subject
- @body[:content] = content
- end
- protected
- def setup_email(user)
- @recipients = "#{user.email}" if user
- @from = Mentoring.admin_email
- @sent_on = Time.now.utc
- @subject = ""
- @body[:user] = user
- @content_type = 'text/html'
- @charset = 'UTF-8'
- end
- end
Add Comment
Please, Sign In to add comment