email generator development started
refactored a little
refactored