Class: UserMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/user_mailer.rb

Instance Method Summary collapse

Instance Method Details

#feedback_send(subject, body, from) ⇒ Object



2
3
4
5
6
7
# File 'app/mailers/user_mailer.rb', line 2

def feedback_send(subject, body, from)
  @subject = subject
  @body = body
  @from = from
  mail(:to => Feedbackable::config.admin_email, :from => from, :subject => "You've got new feedback!")
end