mailer work

This commit is contained in:
Mark Moser
2017-03-02 10:21:30 -06:00
parent efdd1767bc
commit fb5fb40944
9 changed files with 27 additions and 51 deletions

View File

@ -1,30 +1,23 @@
# frozen_string_literal: true
class RecruiterMailer < ApplicationMailer
def candidate_created candidate
@candidate = candidate
@candidate = Candidate.find_by(id: candidate.to_i)
mail to: @candidate.recruiter.email,
subject: "Skills Assessment Test - #{candidate.name}"
end
def candidate_submitted candidate
@candidate = candidate
@candidate = Candidate.find_by(id: candidate.to_i)
mail to: @candidate.recruiter.email,
subject: "Skills Assessment Test - #{candidate.name}"
end
def interview_requested candidate
@candidate = candidate
def candidate_reviewed candidate
@candidate = Candidate.find_by(id: candidate.to_i)
mail to: @candidate.recruiter.email,
subject: "Skills Assesment - Interview Request for #{candidate.name}"
end
def interview_declined candidate
@candidate = candidate
mail to: @candidate.recruiter.email,
subject: "Skills Assesment - Interview Declined for #{candidate.name}"
subject: "Skills Assesment - Review Complete for #{candidate.name}"
end
end

View File

@ -0,0 +1,9 @@
<row>
<columns class="email-body">
<p>The team has <%= @candidate.review_status %> an interview with <strong><%= @candidate.name %></strong> with the following comments:</p>
<p><%= @candidate.review_comments %></p>
<p>Thank you</p>
</columns>
</row>

View File

@ -0,0 +1,7 @@
PERFICIENT/digital - Skills Assessment Test
The team has <%= @candidate.review_status %> an interview with <%= @candidate.name %> with the following comments:
<%= @candidate.review_comments %>
Thank you.

View File

@ -1,6 +0,0 @@
<row>
<columns class="email-body">
<p>The team has declined an interview with <strong><%= @candidate.name %></strong>.</p>
<p>Thank you</p>
</columns>
</row>

View File

@ -1,5 +0,0 @@
PERFICIENT/digital - Skills Assessment Test
The team has declined an interview with <%= @candidate.name %>.
Thank you.

View File

@ -1,6 +0,0 @@
<row>
<columns class="email-body">
<p>The team has requested an interview with <strong><%= @candidate.name %></strong>.</p>
<p>Thank you</p>
</columns>
</row>

View File

@ -1,5 +0,0 @@
PERFICIENT/digital - Skills Assessment Test
The team has requested an interview with <%= @candidate.name %>.
Thank you.