Adds new emailing code