express-mailer icon indicating copy to clipboard operation
express-mailer copied to clipboard

All versions below 4.0.1 of Nodemailer are deprecated

Open sayanriju opened this issue 8 years ago • 2 comments

The package.json lists [email protected] as a dependency, which is apparently deprecated upstream.

Will express-mailer work with latest nodemailer versions?

sayanriju avatar Jul 22 '17 18:07 sayanriju

Hello,

I saw the same warning and decided to do the following changes :

  1. copy the file express-mailer.js ( in the node_modules folder ) and place it in the same folder as the file that required it
  2. In the latter, call require( './express-mailer' ); instead
  3. In the new express-mailer file, change: nodemailer.createTransport([transportMethod],options) with nodemailer.createTransport(options)
  4. Change secureConnection by secure

That's it!

virginielgb avatar Aug 30 '17 07:08 virginielgb

this command will work : "npm install -g nodemailer"

elmoromourad avatar Mar 26 '18 10:03 elmoromourad