express-mailer
express-mailer copied to clipboard
All versions below 4.0.1 of Nodemailer are deprecated
The package.json lists [email protected] as a dependency, which is apparently deprecated upstream.
Will express-mailer work with latest nodemailer versions?
Hello,
I saw the same warning and decided to do the following changes :
- copy the file express-mailer.js ( in the node_modules folder ) and place it in the same folder as the file that required it
- In the latter, call
require( './express-mailer' );instead - In the new express-mailer file, change:
nodemailer.createTransport([transportMethod],options)withnodemailer.createTransport(options) - Change
secureConnectionbysecure
That's it!
this command will work : "npm install -g nodemailer"