Task #1564 - adding log of emails sent and removing duplicates