Refactor

Brings the code forward to a modern node pattern, implements a send function to send the emails directly from your machine.