Added support for csv for emails