Changed sendEmail function in dEmail to idiomatic node code (ie a callback). If it successfully sends the email it returns null, otherwise it returns the error.