EMail working with formatting and removal of duplicates