initial mail module code and mocha test

mocha test didn't function, directly run with node did succeed