Class: ApplicantMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- ApplicantMailer
- Defined in:
- app/mailers/applicant_mailer.rb
Instance Method Summary collapse
Instance Method Details
#notification(applicant_id, request) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'app/mailers/applicant_mailer.rb', line 2 def notification(applicant_id, request) @applicant = Applicant.find(applicant_id) @host = request.host mail( :subject => "[#{RefinerySetting[:site_name]}] New Applicant: #{@applicant.name}", :to => RefinerySetting[:applicant_recipients], :from => "\"#{RefinerySetting[:site_name]}\" <no-reply@#{@host}>", :reply_to => @applicant.email, ) end |