Refactor email sending to its own function, and make allow_duplicates an object property.
Refactor email sending to its own function, and make allow_duplicates an object property.

jhroot/elife-bot,gnott/elife-bot,gnott/elife-bot,jhroot/elife-bot,jhroot/elife-bot,gnott/elife-bot