issue:moving report building code from mailReport() to createReport() #2