Added the exporting data to email function.