send automatic emails and create csv at each run