implemented email report functions