0.24.1 • Published 1 month ago

@novu/nodemailer v0.24.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Nodejs Custom SMTP Provider

A nodemailer email provider library for @novu/stateless

Usage

import { NodemailerProvider } from '@novu/nodemailer';

const provider = new NodemailerProvider({
  from: process.env.NODEMAILER_FROM_EMAIL,
  host: process.env.NODEMAILER_HOST,
  user: process.env.NODEMAILER_USERNAME,
  password: process.env.NODEMAILER_PASSWORD,
  port: process.env.NODEMAILER_PORT,
  secure: process.env.NODEMAILER_SECURE,
});

Advanced configuration

To take advantage of the different advanced configurations of TLS options you can set up the following properties with their corresponding environment variable:

  • ignoreTls: NODEMAILER_IGNORE_TLS -> Boolean
# .env
NODEMAILER_IGNORE_TLS=true
  • requireTls: NODEMAILER_REQUIRE_TLS -> Boolean
# .env
NODEMAILER_REQUIRE_TLS=true
  • tlsOptions: NODEMAILER_TLS_OPTIONS -> JSON
# .env
NODEMAILER_TLS_OPTIONS={"rejectUnauthorized":false}
import { NodemailerProvider } from '@novu/nodemailer';

const provider = new NodemailerProvider({
  from: process.env.NODEMAILER_FROM_EMAIL,
  host: process.env.NODEMAILER_HOST,
  user: process.env.NODEMAILER_USERNAME,
  password: process.env.NODEMAILER_PASSWORD,
  port: process.env.NODEMAILER_PORT,
  secure: process.env.NODEMAILER_SECURE,
  ignoreTls: process.env.NODEMAILER_IGNORE_TLS,
  requireTls: process.env.NODEMAILER_REQUIRE_TLS,
  tlsOptions: process.env.NODEMAILER_TLS_OPTIONS,
});

You can read more details of the different possible configurations in Nodemailer documentation

0.24.1

1 month ago

0.24.0

2 months ago

0.23.1

3 months ago

0.23.0

3 months ago

0.22.0

5 months ago

0.21.0

7 months ago

0.20.0

7 months ago

0.19.0

8 months ago

0.16.3

10 months ago

0.16.4

10 months ago

0.20.0-alpha.1

7 months ago

0.17.0

10 months ago

0.18.0

9 months ago

0.17.1

10 months ago

0.16.2

11 months ago

0.15.0

12 months ago

0.16.0

11 months ago

0.16.1

11 months ago

0.13.0

1 year ago

0.14.0

1 year ago

0.11.0

1 year ago

0.12.0

1 year ago

0.10.0-alpha.0

1 year ago

0.10.1

1 year ago

0.10.2

1 year ago

0.10.0

1 year ago

0.9.0

2 years ago

0.7.2

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.5.0

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.4.1-alpha.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.0-alpha.8

2 years ago

0.4.0-alpha.7

2 years ago

0.4.0-alpha.6

2 years ago

0.4.0-alpha.5

2 years ago

0.4.0-alpha.4

2 years ago

0.4.0-alpha.2

2 years ago

0.4.0-alpha.1

2 years ago

0.4.0-alpha.0

2 years ago