module Applicants class ApplicantMailer < ActionMailer::Base default from: 'UserTesting Support ' def record_your_desktop(applicant_id) @applicant = Applicants::Applicant.find(applicant_id) mail( to: @applicant.email, subject: "Next Step: Complete a sample UserTesting recording" ) end def youve_been_approved(applicant_id) @applicant = Applicants::Applicant.find(applicant_id) mail( to: @applicant.email, subject: "Next Step: Fill out your UserTesting profile" ) end def your_application_has_problems(applicant_id) @applicant = Applicants::Applicant.find(applicant_id) mail( to: @applicant.email, subject: "UserTesting - Please try your sample test again" ) end def upload_video_reminder(applicant_id) @applicant = Applicants::Applicant.find(applicant_id) mail( to: @applicant.email, subject: "UserTesting: Please come back to complete your application" ) end def video_received(applicant_id) @applicant = Applicants::Applicant.find(applicant_id) mail( to: @applicant.email, subject: "UserTesting: we've received your sample video" ) end def youve_been_rejected(applicant_id) @applicant = Applicants::Applicant.find(applicant_id) mail( to: @applicant.email, subject: "UserTesting - Your application to UserTesting" ) end def restarted_for_audio_problem(applicant_id) @applicant = Applicants::Applicant.find(applicant_id) mail( to: @applicant.email, subject: "UserTesting - Technical problem with your application" ) end def restarted_for_performance_problem(applicant_id) @applicant = Applicants::Applicant.find(applicant_id) mail( to: @applicant.email, subject: "UserTesting - Please try your sample test again" ) end def restarted_for_video_problem(applicant_id) @applicant = Applicants::Applicant.find(applicant_id) mail( to: @applicant.email, subject: "UserTesting - Technical problem with your application" ) end end end