Code reworked from active-sender to support nodemailer
Merged github initial branch