refactored email body generation; added email trail