Modified to only send email when the number of jobs to report is > minJobsToReport