added nodemailer. added require libs. stupidly refactored errors
added terminate on send message
cleaning up process flow
comments
added ability to mail using nodemailer