Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All versions below 4.0.1 of Nodemailer are deprecated #36

Open
sayanriju opened this issue Jul 22, 2017 · 2 comments
Open

All versions below 4.0.1 of Nodemailer are deprecated #36

sayanriju opened this issue Jul 22, 2017 · 2 comments

Comments

@sayanriju
Copy link

The package.json lists nodemailer@0.7.1 as a dependency, which is apparently deprecated upstream.

Will express-mailer work with latest nodemailer versions?

@virginielgb
Copy link

virginielgb commented Aug 30, 2017

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!

@elmoromourad
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants