mail sender based on mean stack and socket.io