how to use an email function with Nodejs