implement data fetching and emailing