Remember that the name of the file should be `nodemailer.js` as @ferjm said before :)