updating ReportMail to log correctly and reference files correctly