refactored the emailer