refactor email sender to consumers and agents