changing CSV export to email rather than download
fixed typo