reviewer mailers

This commit is contained in:
Mark Moser
2016-08-02 11:30:03 -05:00
parent 4136db4aab
commit f626aea47d
6 changed files with 56 additions and 1 deletions

View File

@ -0,0 +1,15 @@
class ReviewerMailer < ApplicationMailer
def candidate_submission candidate
@candidate = candidate
# TODO: candidate.reviewers.map(:email)
if Rails.env.production?
recipients = ["harish.bhavanichikar@perficient.com", "jacob.schulke@perficient.com",
"jennifer.siegfried@perficient.com", "martin.ridgway@perficient.com"]
else
recipients = ["fed.reviewer@mailinator.com"]
end
mail to: recipients, subject: "Skills Assessment Results"
end
end

View File

@ -0,0 +1,18 @@
<table cellspacing="0" cellpadding="0" border="0" style="width:100%; font-family:sans-serif;">
<tr>
<td style="background-color:#cc0c0d; color:#ffffff; padding:15px 20px;">
SKILLS ASSESSMENT RESULTS
</td>
</tr>
<tr>
<td style="padding:50px;">
<h1><%= @candidate.test_hash %></h1>
<p>has completed the Skills Assesment Test.</p>
<p>You can review the results here: <%= link_to nil, review_test_url(@candidate.test_hash) %></p>
</td>
</tr>
</table>

View File

@ -0,0 +1,5 @@
SKILLS ASSESSMENT RESULTS
<%= @candidate.test_hash %>
has completed the Skills Assesment Test.
You can review the results here: <%= review_test_url(@candidate.test_hash) %>