Added the logic that I send the email about. Sorry bored at work and wanted to add it. we can revert it if you dont like it.