move email logic out of jobs controller.
add method to mailer class to send email(s) based on the job.