generate the emailOutput.csv file